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: Compress a given tensor.
  
  Args:
      tensor (Tensor): the Tensor to compress.
  
  Returns:
      Tensor
docstr_tok: ["Compress","a","given","tensor",".","Args",":","tensor","(","Tensor",")",":","the","Tensor","to","compress",".","Returns",":","Tensor"]
code: def _compress(self, tensor: Tensor):
      """
      Compress a given tensor.
  
      Args:
          tensor (Tensor): the Tensor to compress.
  
      Returns:
          Tensor
      """
  
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 3 for calling the Compressor obj's underlying member method code with example usage: obj._compress(tensor) without return types