Get a dataset instance for the current DataAdapter. Note that the dataset returned does not repeat for epoch, so caller might need to create new iterator for the same dataset at the beginning of the epoch. This behavior might change in future. Returns: An tf.dataset.Dataset.
(self)
| 108 | |
| 109 | @abc.abstractmethod |
| 110 | def get_dataset(self): |
| 111 | """Get a dataset instance for the current DataAdapter. |
| 112 | |
| 113 | Note that the dataset returned does not repeat for epoch, so caller might |
| 114 | need to create new iterator for the same dataset at the beginning of the |
| 115 | epoch. This behavior might change in future. |
| 116 | |
| 117 | Returns: |
| 118 | An tf.dataset.Dataset. Caller might use the dataset in different |
| 119 | context, eg iter(dataset) in eager to get the value directly, or in graph |
| 120 | mode, provide the iterator tensor to Keras model function. |
| 121 | """ |
| 122 | raise NotImplementedError |
| 123 | |
| 124 | @abc.abstractmethod |
| 125 | def get_size(self): |
no outgoing calls