mirror of
https://github.com/mrdbourke/pytorch-deep-learning.git
synced 2026-11-27 06:07:09 +00:00
fix error
This commit is contained in:
1 parent
649d59a1da
commit
f1f307d1c7
1 file changed
+1
-1
@@ -633,7 +633,7 @@
|
||||
"# Let's calculate the accuracy\n",
|
||||
"!pip -q install torchmetrics # colab doesn't come with torchmetrics\n",
|
||||
"from torchmetrics import Accuracy\n",
|
||||
"acc_fn = Accuracy(task="multiclass", num_classes=2).to(device) # send accuracy function to device\n",
|
||||
"acc_fn = Accuracy(task=\"multiclass\", num_classes=2).to(device) # send accuracy function to device\n",
|
||||
"acc_fn"
|
||||
],
|
||||
"metadata": {
|
||||
|
||||
Reference in new issue
Block a user