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: Create new Compressor instance given subclass name.
  
  Args:
      name: Name of the Compressor subclass (e.g. NoneCompressor).
      *args: Any args for the subclass constructor.
      **kwargs: Any kwargs for the subclass constructor.
  
  Returns:
      Compressor
docstr_tok: ["Create","new","Compressor","instance","given","subclass","name",".","Args",":","name",":","Name","of","the","Compressor","subclass","(","e.g",".","NoneCompressor",")",".","*","args",":","Any","args","for","the","subclass","constructor",".","*","*","kwargs",":","Any","kwargs","for","the","subclass","constructor",".","Returns",":","Compressor"]
code: def create(cls, name, *args, **kwargs):
      """
      Create new Compressor instance given subclass name.
  
      Args:
          name: Name of the Compressor subclass (e.g. NoneCompressor).
          *args: Any args for the subclass constructor.
          **kwargs: Any kwargs for the subclass constructor.
  
      Returns:
          Compressor
      """
      subclass = next(
          subclass
          for subclass in cls._get_subclasses()
          if subclass.__name__ == name
      )
      return subclass(*args, **kwargs)
  
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 6 for calling the Compressor obj's underlying member method code with example usage: obj.create(cls, name) and returns: subclass