tf.reduce_mean()

2018-11-24  本文已影响5人  Thinkando
x = tf.constant([[1., 1.], [2., 2.]])
tf.reduce_mean(x)  # 1.5
tf.reduce_mean(x, 0)  # [1.5, 1.5]
tf.reduce_mean(x, 1)  # [1.,  2.]
上一篇 下一篇

猜你喜欢

热点阅读