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

Method get_dataset

tensorflow/python/keras/engine/data_adapter.py:110–122  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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):

Callers 13

get_datasetMethod · 0.45
test_trainingMethod · 0.45
fitMethod · 0.45
_model_iterationMethod · 0.45
_process_inputsFunction · 0.45
test_callbacks_in_fitMethod · 0.45
test_save_load_h5Method · 0.45

Calls

no outgoing calls