Returns the options for this dataset and its inputs. Returns: A `tf.data.Options` object representing the dataset options.
(self)
| 263 | return [] |
| 264 | |
| 265 | def options(self): |
| 266 | """Returns the options for this dataset and its inputs. |
| 267 | |
| 268 | Returns: |
| 269 | A `tf.data.Options` object representing the dataset options. |
| 270 | """ |
| 271 | options = Options() |
| 272 | for input_dataset in self._inputs(): |
| 273 | input_options = input_dataset.options() |
| 274 | if input_options is not None: |
| 275 | options = options.merge(input_options) |
| 276 | return options |
| 277 | |
| 278 | def _apply_options(self): |
| 279 | """Apply options, such as optimization configuration, to the dataset.""" |