Skip to content

Commit

Permalink
Update pdl.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ChongQingNoSubway authored Apr 28, 2024
1 parent 02a59f8 commit 82b46cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MNIST/pdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def forward(self,input):
else:
#input_2 = self.embedding(input)
#print(input.shape)
importances = torch.mean(input,dim=1,keepdim=True)
importances = torch.mean(input,dim=1)
#importances = torch.sigmoid(importances)
importances = F.softmax(importances,dim=0)
#print(importances)
Expand Down

0 comments on commit 82b46cb

Please sign in to comment.