TensorDictBase.reduce#
- TensorDictBase.reduce(dst, op=None, async_op=False, return_premature=False, group=None) None#
Reduces the tensordict across all machines.
Only the process with
rankdst is going to receive the final result.
Every tensordict class and every tensorclass has this method. For the other methods, see Methods by task.