pulled SpatialLogSoftMax from torch