Skip to content

Commit

Permalink
Update tutorial_regression_1.ipynb
Browse files Browse the repository at this point in the history
bug-fix: ipynb not opening
  • Loading branch information
jeshraghian authored Oct 14, 2023
1 parent 950878d commit d6f93b9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions examples/tutorial_regression_1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -387,9 +387,8 @@
"outputs": [],
"source": [
"hidden = 128\n",
"device = torch.device(\"cuda\") if torch.cuda.is_available() else torch.device("mps") if torch.backends.mps.is_available() else torch.device(\"cpu\")\n",
"\n",
"model = Net(timesteps=num_steps, hidden=hidden).to(device)"
"device = torch.device(\"cuda\") if torch.cuda.is_available() else torch.device(\"cpu\")\n",
"model = Net(timesteps=num_steps, hidden=hidden).to(device)\n"
]
},
{
Expand Down

0 comments on commit d6f93b9

Please sign in to comment.