In a row-parallel layer each device computes a partial product over its share of the input features. Summing those partial results across devices reproduces the full output. The sum is an all-reduce collective.
Implement allreduce_sum(parts), summing the partial results element-wise.
Stack the partial results and sum over the device axis.
No results yet
Run your code to check it against the examples, or submit to run every test.