Returns a new `tf.data.Dataset` with the given options set. The options are "global" in the sense they apply to the entire dataset. If options are set multiple times, they are merged as long as different options do not use different non-default values. Args: options: A `tf.da
(self, options)
| 1634 | return _UnbatchDataset(restructured_dataset) |
| 1635 | |
| 1636 | def with_options(self, options): |
| 1637 | """Returns a new `tf.data.Dataset` with the given options set. |
| 1638 | |
| 1639 | The options are "global" in the sense they apply to the entire dataset. |
| 1640 | If options are set multiple times, they are merged as long as different |
| 1641 | options do not use different non-default values. |
| 1642 | |
| 1643 | Args: |
| 1644 | options: A `tf.data.Options` that identifies the options the use. |
| 1645 | |
| 1646 | Returns: |
| 1647 | Dataset: A `Dataset` with the given options. |
| 1648 | |
| 1649 | Raises: |
| 1650 | ValueError: when an option is set more than once to a non-default value |
| 1651 | """ |
| 1652 | return _OptionsDataset(self, options) |
| 1653 | |
| 1654 | |
| 1655 | @tf_export(v1=["data.Dataset"]) |