Support for max/min ops for `sync_all_reduce`
See original GitHub issueRunning the distributed tests while world_size > 1
makes the tests fail. I was trying to make the metric compatible with DDP with doing the same thing we have done with the other metrics but the results are different!
I tried to print out some things for a better understanding, everything seemed to be working fine (calculating the metric is very simple) but after doing metric.compute()
returns a strange result! (even printing the values computed in _update()
function seems fine!).
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
What is the right data structure for a queue that support Min ...
The basic priority queue supports Insert , Max , and RemoveMax . There are a number of ways ... Both operations with large...
Read more >The difference between max-min and min-max
I am solving two-stage optimization problems in the form of maxx∈Xminy∈Yf(x,y),.
Read more >Average, Max, Min, StdevP, Sum, and VarP functions in Power ...
Reference information including syntax and examples for the Average, Max, Min, StdevP, Sum, and VarP functions in Power Apps.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Otherwise, you can create a zero tensor of size world_size. Each process writes in the rank position. You reduce this tensor and compute the max. It should do the job but it is a hack and that does not scale.
@KickItLikeShika Thank you.