torch、tensorflow-cpu

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
最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容