import tensorflow as tf
a = tf.constant([2,3,4])
print(a.shape.as_list()[0])
tensorflow张量维度输出一个整数
最新推荐文章于 2023-02-07 22:44:27 发布
import tensorflow as tf
a = tf.constant([2,3,4])
print(a.shape.as_list()[0])