Skip to content

Commit

Permalink
Update tutorial_regression_2.ipynb
Browse files Browse the repository at this point in the history
bug-fix: ipynb file not opening
  • Loading branch information
jeshraghian authored Oct 14, 2023
1 parent d6f93b9 commit f2e466e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions examples/tutorial_regression_2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,7 @@
"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",
"device = torch.device(\"cuda\") if torch.cuda.is_available() else torch.device(\"cpu\")\n",
"model = Net(timesteps=num_steps, hidden=hidden, beta=0.9).to(device)"
]
},
Expand Down

0 comments on commit f2e466e

Please sign in to comment.