Get the layer that produces this tensor.
(self, tensor)
| 413 | yield layer |
| 414 | |
| 415 | def get_tensor_parent(self, tensor) -> Optional["Layer"]: |
| 416 | ''' |
| 417 | Get the layer that produces this tensor. |
| 418 | ''' |
| 419 | state = self._get_graph() |
| 420 | return state.tensor_to_producer.get(tensor, None) |
| 421 | |
| 422 | def mark_removed_layer(self, layer: "Layer"): |
| 423 | from .graph_rewriting import FLayerInfoMemo |
no test coverage detected