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)
| 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 | |
| 2414 | class DatasetSource(DatasetV2): |
no outgoing calls