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

Method _assert_fetchable

tensorflow/python/client/session.py:503–510  ·  view source on GitHub ↗
(self, graph, op)

Source from the content-addressed store, hash-verified

501 self._final_fetches = [x for x in self._fetches if x not in feeds]
502
503 def _assert_fetchable(self, graph, op):
504 if not graph.is_fetchable(op):
505 raise errors.InaccessibleTensorError(
506 'Operation %r has been marked as not fetchable. Typically this'
507 ' happens when it is defined in another function or code block.'
508 ' Use return values,explicit Python locals or TensorFlow collections'
509 ' to access it.'
510 % op.name)
511
512 def fetches(self):
513 """Return the unique names of tensors to fetch.

Callers 1

__init__Method · 0.95

Calls 1

is_fetchableMethod · 0.80

Tested by

no test coverage detected