tensorflow入门:tensor初探
导入tensorflow
import tensorflow as tf
输出tensorflow的版本
print(tf.version)
创建tensor
x = tf.constant(range(12))
tensor的形状x.shape
tensor的长度len(x)
改变tensor的形状
X=tf.reshape(x,(3,4))
X=tf.reshape(x,(-1,4))
X=t...
原创
2020-04-27 15:43:27 ·
482 阅读 ·
0 评论