等待创建完成后,点击
PyTorch
打开,创建一个全新的
notebook
![](https://img-blog.csdnimg.cn/direct/c5605dc3f6c7411391c7608afc9f604b.png)
在
Cell
中输入如下代码,并点击
Run
![](https://img-blog.csdnimg.cn/direct/76890128320843e3a7319556cdd3e4ba.png)
完成后点击
New Cell
,在
New Cell
中输入如下代码
![](https://img-blog.csdnimg.cn/direct/7cf1b91d407144bdbac508927e583ce3.png)
输入完成后点击
Run
,运行
New Cell
。(每个
Cell
代码填写完成后就点击
Run
运行,运行完后就点击 New Cell创建新的
Cell
填写下一步的代码,后续不再赘述)
![](https://img-blog.csdnimg.cn/direct/eba9e8df1eb146c593897c6431612af5.png)