【发布时间】:2019-04-08 01:50:51
【问题描述】:
我正在使用 TensorFlow 的 tf.unsorted_segment_sum 方法,它可以工作。 例如:
tf.unsorted_segment_sum(tf.constant([0.2, 0.1, 0.5, 0.7, 0.8]),
tf.constant([0, 0, 1, 2, 2]), 3)
给出正确的结果:
array([ 0.3, 0.5 , 1.5 ], dtype=float32)
我想得到:
array([0.3, 0.3, 0.5, 1.5, 1.5], dtype=float32)
【问题讨论】:
标签: tensorflow segment