tf.ensure_shape 感觉这个功能有点鸡肋


x = tf.constant([1,2,3])
print(x.shape)

x = tf.ensure_shape(x, [3])


posted @ 2022-08-19 22:51  luoganttcc  阅读(8)  评论(0)    收藏  举报