标签: tensorflow
请看下面的这段代码,为什么y的值是15而不是3?是我的误会吗?
import tensorflow tensorflow.enable_eager_execution(); mean = tensorflow.contrib.eager.metrics.Mean(); x = [1, 2, 3, 4, 5]; y = mean(x); print(y);
结果是:tf.Tensor(15,shape =(),dtype = int32)