续上上节课安装pytorch
激活pytorch环境
conda activate pytorch
先看看有没有
安装 conda install jupyter notebook
conda install jupyter notebook
查看
jupyter notebook
右上角新建一个new ,选择python
最后验证一下,分别输入下面代码,注意中间是shift+enter跳转下一行,最后返回true就成功了
import torch
torch. cuda. is_available ()