tensorflow中的shape函数理解
在tensorflow中经常用到shape函数
例如
import tensorflow as tf
a = tf.constant([[1.,2.,3.],[4.,5.,6.],[7.,8.,9.]],shape = [3,3])
b = tf.global_variables_initializer()
with tf.Session() as sess:
sess.run(b)...
原创
2019-11-21 10:24:48 ·
3639 阅读 ·
1 评论