Thank you.
In accordance to the first example in your link, I added in the NetGraph
"enc_5" -> NetPort["layer5"]
Then, I tried to run it with the same command in the example:
nNetInfo = NetTrain[net, trainingData, "Output" -> CrossEntropyLossLayer["Index"]]
But I got error massages:
OptionValue::nodef "Unknown option \!\(\"Output\"\) for NetTrain"
NetTrain::missinslot "Specification for slot \!\(\"layer5\"\) is missing."
and in the NetTrain function command "Output" and "index" are colored by red.
What am I doing wrong ?
Thanks