标签:project details bsp source types detail import port print
import tensorflow as tf
b = tf.ones([2,4])+1
sess = tf.Session();
print(sess.run(b));
输出:
[[ 2. 2. 2. 2.]
[ 2. 2. 2. 2.]]
参考链接
http://wiki.jikexueyuan.com/project/tensorflow-zh/resources/dims_types.html
什么是张量
http://blog.csdn.net/u014595019/article/details/52805444
常用函数说明
标签:project details bsp source types detail import port print
原文地址:http://www.cnblogs.com/guolaomao/p/7911222.html