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

Method gen_dataset

tensorflow/python/tpu/datasets_test.py:178–181  ·  view source on GitHub ↗
(dummy)

Source from the content-addressed store, hash-verified

176 yield (1, [1] * 10)
177
178 def gen_dataset(dummy):
179 return dataset_ops.Dataset.from_generator(
180 my_generator, (dtypes.int64, dtypes.int64),
181 (tensor_shape.TensorShape([]), tensor_shape.TensorShape([10])))
182
183 dataset = datasets.StreamingFilesDataset(
184 dataset_ops.Dataset.range(10), filetype=gen_dataset)

Callers

nothing calls this directly

Calls 1

from_generatorMethod · 0.45

Tested by

no test coverage detected