Spaces:
Sleeping
Sleeping
File size: 186 Bytes
8d4ee22 |
1 2 3 4 5 6 |
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) |