You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add unsorted segment ops for prod, min, mean, sqrt_n #7389
As requested by @girving in #7362 I'll file a separate issue.
The sorted segment reduction ops feature prod, min, mean, sqrt_n while the unsorted ops don't include those. So I suggest to add the following functions:
I am implementing batch k-means. In the update phase, new centers have to be computed according to the points re-assignments. It would make thing easier if there is unsorted_segment_mean.
Hi,
sorry, I've been rather busy in the last few weeks. I'm 95% done implementing the CPU Kernels, with a bug remaining. Thanks for reminding me, I'll have a look at it tomorrow!
Cheers,
Phil
Automatically closing due to lack of recent activity. Since this issue is old at this point, please reopen the issue if it still occurs when tried with the latest version of Tensorflow. Thank you.
Activity
girving commentedon Feb 9, 2017
Thank you for splitting this out!
girving commentedon Feb 9, 2017
I'd recommend spelling it
num_segments, though.PhilJd commentedon Feb 9, 2017
Sorry, of course! Stupid typo, I'll change the issue description.
lidalei commentedon Apr 20, 2017
I am implementing batch k-means. In the update phase, new centers have to be computed according to the points re-assignments. It would make thing easier if there is unsorted_segment_mean.
PhilJd commentedon Apr 20, 2017
Hi,
sorry, I've been rather busy in the last few weeks. I'm 95% done implementing the CPU Kernels, with a bug remaining. Thanks for reminding me, I'll have a look at it tomorrow!
Cheers,
Phil
PhilJd commentedon Apr 20, 2017
For now you could just compute the mean with existing tensorflow functions, e.g.
The main advantage is that this runs on GPU.
lidalei commentedon Apr 20, 2017
This is great! Thanks a lot!
itsmeolivia commentedon Jun 16, 2017
Automatically closing due to lack of recent activity. Since this issue is old at this point, please reopen the issue if it still occurs when tried with the latest version of Tensorflow. Thank you.
PR #7389: [XLA:GPU] turn on cuDNN fmha flag by default
REVERT PR #7389: [XLA:GPU] turn on cuDNN fmha flag by default
PR #7389: [XLA:GPU] turn on cuDNN fmha flag by default