but after log_softmax = nn.LogSoftmax(dim=1) with data=[128, 27, 10], apply out=log_softmax(data),
I change it [128, 27, 10] to [128, 10, 27], by out.permute(0, 2, 1).contiguous() but get error:
AttributeError: ‘numpy.ndarray’ object has no attribute ‘permute’
I want to get the last sequence result that it is a length of 27 slice.