1.ttt.py如下:
import SimpleITK
import torch
print(torch.cuda.is_available())
pycharm上運行:
TrueProcess finished with exit code 0
終端上運行:
(framework_py38) [pacs@localhost Liver]$ python ttt.py
段錯誤(吐核)
2.ttt.py代碼改動import torch和import SimpleITK 順序。
import torch
import SimpleITK
# import torch
print(torch.cuda.is_available())
pycharm上運行:
TrueProcess finished with exit code 0
pytorch能干嘛。終端上運行:
(framework_py38) [pacs@localhost Liver]$ python ttt.py
True
?
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态