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

Function _feed_fn

tensorflow/python/ops/prefetch.py:61–65  ·  view source on GitHub ↗
(feed, feed_val)

Source from the content-addressed store, hash-verified

59 use_stage_subgraph_thread_pool=False,
60 stage_subgraph_thread_pool_id=0):
61 def _feed_fn(feed, feed_val):
62 for tensor_type, _, feed_fn, _ in _REGISTERED_EXPANSIONS:
63 if isinstance(feed, tensor_type):
64 return feed_fn(feed, feed_val)
65 raise TypeError('Feed argument %r has invalid type %r' % (feed, type(feed)))
66
67 options.run_options.use_stage_subgraph_thread_pool = \
68 use_stage_subgraph_thread_pool

Callers 3

partial_run_setupMethod · 0.85
_runMethod · 0.85

Calls 1

typeFunction · 0.85

Tested by

no test coverage detected