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

Method input_dataset

tensorflow/python/ops/work_queue.py:426–438  ·  view source on GitHub ↗

Returns a dataset as input dataset Returns: A local dataset of work items.

(self)

Source from the content-addressed store, hash-verified

424 return proxy
425
426 def input_dataset(self):
427 """Returns a dataset as input dataset
428
429 Returns:
430 A local dataset of work items.
431 """
432 proxy = self.input_producer()
433 next_work = lambda _: array_ops.reshape(proxy.dequeue(), [])
434 with ops.name_scope(self.name):
435 with ops.device(self._local_device):
436 dataset = dataset_ops.Dataset.from_tensors(0).repeat()
437 dataset = dataset.map(next_work)
438 return dataset
439
440 def add_summary(self):
441 """Gets size of the work queue.

Callers 15

build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95
build_model_inputFunction · 0.95

Calls 8

input_producerMethod · 0.95
reshapeMethod · 0.80
dequeueMethod · 0.45
name_scopeMethod · 0.45
deviceMethod · 0.45
repeatMethod · 0.45
from_tensorsMethod · 0.45
mapMethod · 0.45

Tested by 2

test_simple_datasetMethod · 0.76
_get_workersMethod · 0.76