class_docstr: Implementation of OptionsInterface.
class_docstr_tok: ["Implementation","of","OptionsInterface","."]
docstr: Merges with another options and returns a new one.
  
  Values specified in the `options` takes precedence if they're not the
  default.
  
  Args:
    options: a `tf.distribute.experimental.CollectiveCommunication`.
  
  Returns:
    A new `tf.distribute.experimental.CollectiveCommunication`.
docstr_tok: ["Merges","with","another","options","and","returns","a","new","one",".","Values","specified","in","the","`","options","`","takes","precedence","if","they","'re","not","the","default",".","Args",":","options",":","a","`","tf.distribute.experimental.CollectiveCommunication","`",".","Returns",":","A","new","`","tf.distribute.experimental.CollectiveCommunication","`","."]
code: def merge(self, options):
      """Merges with another options and returns a new one.
  
      Values specified in the `options` takes precedence if they're not the
      default.
  
      Args:
        options: a `tf.distribute.experimental.CollectiveCommunication`.
  
      Returns:
        A new `tf.distribute.experimental.CollectiveCommunication`.
      """
      merged = copy.deepcopy(self)
      if options is None:
          return merged
      if options.bytes_per_pack != 0:
          merged.bytes_per_pack = options.bytes_per_pack
      if options.timeout_seconds is not None:
          merged.timeout_seconds = options.timeout_seconds
      if options.implementation != CommunicationImplementation.AUTO:
          merged.implementation = options.implementation
      return merged
  
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 2 for calling the Options obj's underlying member method code with example usage: obj.merge(options) and returns: merged, merged