TensorFlow Ones,Zeros
时间:2017-11-28 18:20:19
收藏:0
阅读:210
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
常用函数说明
原文:http://www.cnblogs.com/guolaomao/p/7911222.html
评论(0)