使用Colab运行pytorch文件

使用Colab运行pytorch文件,第1张

#1. 查看pytorch版本:
import torch
print(torch.__version__)
#2.查看cuda版本:
print(torch.version.cuda)


from google.colab import drive
drive.mount('/content/drive/')

#!pip install torch==1.10.2 torchvision==0.11.3 -f https://download.pytorch.org/whl/torch_stable.html
!pip install transformers==3.4.0
!pip install numpy==1.19

!python "/content/drive/MyDrive/model/nlp/bert_model.py"

欢迎分享,转载请注明来源:内存溢出

原文地址:https://54852.com/langs/870151.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-13
下一篇2022-05-13

发表评论

登录后才能评论

评论列表(0条)

    保存