PyTorch provides 2 kinds of Softmax class. The one is applying softmax along a certain dimension. The other is do softmax on a spatial matrix sized in B, C, H, W.
But it seems like some problems existing in Softmax2d. : (
原文:https://www.cnblogs.com/hizhaolei/p/10641459.html