class_docstr: Implementation of OptionsInterface.
class_docstr_tok: ["Implementation","of","OptionsInterface","."]
code: def __init__(
      self,
      bytes_per_pack=0,
      timeout_seconds=None,
      implementation=CommunicationImplementation.AUTO,
  ):
      if bytes_per_pack < 0:
          raise ValueError(
              f"Argument `bytes_per_pack` must be >=0, Received {bytes_per_pack}."
          )
      if isinstance(implementation, str):
          implementation = CommunicationImplementation(
              implementation.upper()
          )
      if not isinstance(implementation, CommunicationImplementation):
          raise ValueError(
              "Argument `implementation` must be instance of "
              "`tf.distribute.experimental.CommunicationImplementation`."
          )
      self.bytes_per_pack = bytes_per_pack
      self.timeout_seconds = timeout_seconds
      self.implementation = implementation
  
file_path: tensorflow-upstream/tensorflow/python/distribute/collective_util.py
imports: import copy
  import enum
  from tensorflow.python.util import deprecation
  from tensorflow.python.util.tf_export import tf_export
label_desc: Use image node_id 1 to create a new Options object from inherited base classes: object with example: obj = Options(bytes_per_pack, timeout_seconds, implementation)