Cuda

GUP加速器的驱动

Official website 选择合适版本驱动下载并安装

针对神经网络的加速库

cudnn 选择合适版本下载,并按 官方指示

Pytorch

Official website

installing

1、Try

pip install torch torchvision

2、If failed, do

文件下载地址:https://download.pytorch.org/whl/torch_stable.html

下载适合你的 torch 和 torchvision 版本 ,然后离线安装

pip install xx.whl

Verifying

import torch
x = torch.rand(5, 3)
print(x)

有输出就安装成功了

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

True代表 GPU可以用了

Tensorflow

installing

pip install tensorflow-gpu==2.0.0-rc0

Verifying

import tensorflow as tf
tf.enable_eager_execution()
print(tf.add(1, 2).numpy())
hello = tf.constant('Hello, TensorFlow!')
print(hello.numpy())

keras

pip install keras
Logo

魔乐社区(Modelers.cn) 是一个中立、公益的人工智能社区,提供人工智能工具、模型、数据的托管、展示与应用协同服务,为人工智能开发及爱好者搭建开放的学习交流平台。社区通过理事会方式运作,由全产业链共同建设、共同运营、共同享有,推动国产AI生态繁荣发展。

更多推荐