Haaribo's picture
Add application file
8d4ee22
raw
history blame contribute delete
186 Bytes
import torch
def softmax_feature_maps(x):
# done: verify that this applies softmax along first dimension
return torch.softmax(x.reshape(x.size(0), x.size(1), -1), 2).view_as(x)