Skip to content

Commit

Permalink
fix bug related to device id in conditional_mnist.ipynb (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
ImahnShekhzadeh authored Jan 4, 2024
1 parent 6b3adb4 commit 01a088a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/images/conditional_mnist.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"outputs": [],
"source": [
"use_cuda = torch.cuda.is_available()\n",
"device = torch.device(\"cuda:3\" if use_cuda else \"cpu\")\n",
"device = torch.device(\"cuda\" if use_cuda else \"cpu\")\n",
"batch_size = 128\n",
"n_epochs = 10\n",
"\n",
Expand Down

0 comments on commit 01a088a

Please sign in to comment.