| 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. |