Skip to main content

neural networks - Has the usage of CrossEntropyLossLayer changed?



Reading this answer about CrossEntropyLossLayer, I find the following.




enter image description here





But when I evaluate the same code, I get errors.


CrossEntropyLossLayer[][<|"Input" -> {1}, "Target" -> 1|>]
CrossEntropyLossLayer[][<|"Input" -> {2}, "Target" -> 1|>]
CrossEntropyLossLayer[][<|"Input" -> {20}, "Target" -> 1|>]
CrossEntropyLossLayer[][<|"Input" -> {200}, "Target" -> 1|>]

enter image description here


So has the usage of CrossEntropyLossLayer changed?


I am using Version 11.1.0 for Microsoft Windows (64-bit) (March 13, 2017)




Comments