Julien Simon
commited on
Commit
•
422a8b5
1
Parent(s):
f4260de
Update README.md
Browse files
README.md
CHANGED
@@ -76,7 +76,7 @@ tensor([[ 0.004, 0.002, 0.701, 0.014, 0.030, 0.011,
|
|
76 |
0.000, 0.008, 0.004, 0.001, 0.002, 0.009,
|
77 |
0.004, 0.002, 0.005, 0.008, 0.001, 0.005]],
|
78 |
grad_fn=<SoftmaxBackward0>)
|
79 |
-
>>> top_class = torch.argmax(logits.logits, dim
|
80 |
>>> top_class
|
81 |
tensor([2])
|
82 |
>>> model.config.id2label[top_class.numpy()[0]]
|
|
|
76 |
0.000, 0.008, 0.004, 0.001, 0.002, 0.009,
|
77 |
0.004, 0.002, 0.005, 0.008, 0.001, 0.005]],
|
78 |
grad_fn=<SoftmaxBackward0>)
|
79 |
+
>>> top_class = torch.argmax(logits.logits, dim=1)
|
80 |
>>> top_class
|
81 |
tensor([2])
|
82 |
>>> model.config.id2label[top_class.numpy()[0]]
|