jesse-tong commited on
Commit
e9a711a
·
1 Parent(s): ad761a3
Files changed (1) hide show
  1. inference_lstm.py +1 -1
inference_lstm.py CHANGED
@@ -106,7 +106,7 @@ if __name__ == "__main__":
106
  # Argmax over each group of classes_per_group
107
  print("DEBUG: Reshaped shape: ", reshaped.shape)
108
 
109
- predictions = torch.argmax(probs, dim=1)
110
  else:
111
  probs = F.softmax(outputs, dim=1)
112
  predictions = torch.argmax(probs, dim=1)
 
106
  # Argmax over each group of classes_per_group
107
  print("DEBUG: Reshaped shape: ", reshaped.shape)
108
 
109
+ predictions = torch.argmax(probs, dim=-1)
110
  else:
111
  probs = F.softmax(outputs, dim=1)
112
  predictions = torch.argmax(probs, dim=1)