class_docstr: Wraps CollectiveOps.All_Reduce with compression and decompression for network efficiency.
  
  This means that it only wraps gradient transmission for AllReduce
  synchronized variables, not PS ops or other ops like network reads.
class_docstr_tok: ["Wraps","CollectiveOps.All_Reduce","with","compression","and","decompression","for","network","efficiency",".","This","means","that","it","only","wraps","gradient","transmission","for","AllReduce","synchronized","variables",",","not","PS","ops","or","other","ops","like","network","reads","."]
docstr: Using CollectiveOps, AllReduce the given tensor.
  
  Args:
      tensor (Tensor): the tensor to all-reduce
      conf (CollectiveOpsConfig): the config for CollectiveOps
  
  Returns:
      The All-Reduced Tensor
docstr_tok: ["Using","CollectiveOps",",","AllReduce","the","given","tensor",".","Args",":","tensor","(","Tensor",")",":","the","tensor","to","all-reduce","conf","(","CollectiveOpsConfig",")",":","the","config","for","CollectiveOps","Returns",":","The","All-Reduced","Tensor"]
code: def _all_reduce(tensor: Tensor, conf: CollectiveOpsConfig):
      """
      Using CollectiveOps, AllReduce the given tensor.
  
      Args:
          tensor (Tensor): the tensor to all-reduce
          conf (CollectiveOpsConfig): the config for CollectiveOps
  
      Returns:
          The All-Reduced Tensor
      """
      return collective_ops.all_reduce(tensor, **conf.__dict__)
  
imports: from abc import ABC, abstractmethod
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework.ops import Tensor
  from tensorflow.python.ops import collective_ops, math_ops
label_desc: Use image node_id 5 for calling the Compressor obj's underlying member method code with example usage: obj._all_reduce(tensor, conf) and returns: collective_ops