MCPcopy Create free account
hub / github.com/apache/singa / all_reduce_half

Method all_reduce_half

python/singa/opt.py:767–773  ·  view source on GitHub ↗

Performs all reduce of a tensor after converting to FP16. Args: tensor(Tensor): a tensor to be all-reduced

(self, tensor)

Source from the content-addressed store, hash-verified

765 self.communicator.fusedSynch(tensor, send)
766
767 def all_reduce_half(self, tensor):
768 """Performs all reduce of a tensor after converting to FP16.
769
770 Args:
771 tensor(Tensor): a tensor to be all-reduced
772 """
773 self.communicator.synchHalf(tensor)
774
775 def fused_all_reduce_half(self, tensor, send=True):
776 """Performs all reduce of the tensors after fusing and converting them to FP16.

Callers 2

test_dist_opt_fp16Method · 0.80

Calls 1

synchHalfMethod · 0.80

Tested by 1

test_dist_opt_fp16Method · 0.64