美文网首页
torch、tensorflow-cpu

torch、tensorflow-cpu

作者: 青草_e75f | 来源:发表于2019-03-07 16:14 被阅读0次

import torch

print(torch.__version__)

print(torch)

torch版本
torch安装路径

pyana37

import tensorflow as tf

tf.__version__

tf.__path__

tensorflow-cpu版本

查看py35下安装的tensorflow版本
import numpy import tensorflow as tf

a = tf.constant([1.0,2.0,3.0,4.0,5.0,6.0], shape=[2,3], name='a')

b = tf.constant([1.0,2.0,3.0,4.0,5.0,6.0], shape=[3,2], name='b')

c = tf.matmul(a, b)

sess = tf.Session(config=tf.ConfigProto(log_device_placement=True)) print(sess.run(c))

tensorflow-Gpu

相关文章

网友评论

      本文标题:torch、tensorflow-cpu

      本文链接:https://www.haomeiwen.com/subject/lpwouqtx.html