如何使用Pytorch-huggingface-Bert预训练模型
安装及环境准备首先创建一个用于本次任务的虚拟环境,然后可以开始安装需要的东西tensorflowpip install --upgrade tensorflow验证安装效果:python -c "import tensorflow as tf;print(tf.reduce_sum(tf.random.normal([1000, 1000])))"pytorchpip install torch torchvision验证安装效果:python -c "import torch;x
原创
2021-03-02 18:22:22 ·
5394 阅读 ·
0 评论