HankyStyle commited on
Commit
6dcddab
1 Parent(s): ceb6be6

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +9 -0
README.md CHANGED
@@ -111,5 +111,14 @@ print(outputs.logits)
111
  tensor([[-4.3450, 4.6878]], grad_fn=<AddmmBackward0>)
112
  }
113
 
 
 
 
 
 
 
 
 
 
114
 
115
  ```
 
111
  tensor([[-4.3450, 4.6878]], grad_fn=<AddmmBackward0>)
112
  }
113
 
114
+ import torch
115
+
116
+ predictions = torch.nn.functional.softmax(outputs.logits, dim=-1)
117
+ print(predictions)
118
+
119
+ {
120
+ tensor([[1.1942e-04, 9.9988e-01]], grad_fn=<SoftmaxBackward0>)
121
+ }
122
+
123
 
124
  ```