当前位置:网站首页>Jupyter notebook操作

Jupyter notebook操作

2022-06-24 13:00:00 猿代码_xiao

查看当前jupyter环境下的版本:

import sys
sys.version

设置jupyter打开位置:

jupyter notebook D:\Python\pytorchLearn\jupyter

查看torch是否可用:

import torch
print(torch.cuda.is_available())
print(torch.__version__)

!与%的区别
!开一个新的progress,执行完之后立即终止;provided by the Jupyter
%的操作会持续;provided by the IPython kernel

在 Jupyter 启动 Tensorboard:

pip install jupyter-tensorboard
%load_ext tensorboard
%tensorboard --logdir data/autograph/
原网站

版权声明
本文为[猿代码_xiao]所创,转载请带上原文链接,感谢
https://blog.csdn.net/qq_41318914/article/details/125247142