MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / merge

Method merge

tensorflow/python/data/ops/dataset_ops.py:2395–2411  ·  view source on GitHub ↗

Merges itself with the given `tf.data.Options`. The given `tf.data.Options` can be merged as long as there does not exist an attribute that is set to different values in `self` and `options`. Args: options: a `tf.data.Options` to merge with Raises: ValueError: if the g

(self, options)

Source from the content-addressed store, hash-verified

2393 return result
2394
2395 def merge(self, options):
2396 """Merges itself with the given `tf.data.Options`.
2397
2398 The given `tf.data.Options` can be merged as long as there does not exist an
2399 attribute that is set to different values in `self` and `options`.
2400
2401 Args:
2402 options: a `tf.data.Options` to merge with
2403
2404 Raises:
2405 ValueError: if the given `tf.data.Options` cannot be merged
2406
2407 Returns:
2408 New `tf.data.Options()` object which is the result of merging self with
2409 the input `tf.data.Options`.
2410 """
2411 return options_lib.merge_options(self, options)
2412
2413
2414class DatasetSource(DatasetV2):

Callers 5

optionsMethod · 0.95
_process_switchMethod · 0.45
__init__Method · 0.45

Calls

no outgoing calls