(self, inputs, mask)
| 483 | return self._is_graph_network and super(Network, self)._should_compute_mask |
| 484 | |
| 485 | def compute_mask(self, inputs, mask): |
| 486 | if not self._is_graph_network: |
| 487 | return None |
| 488 | |
| 489 | # TODO(omalleyt): b/123540974 This function is not really safe to call |
| 490 | # by itself because it will duplicate any updates and losses in graph |
| 491 | # mode by `call`ing the Layers again. |
| 492 | output_tensors = self._run_internal_graph(inputs, mask=mask) |
| 493 | return nest.map_structure(lambda t: t._keras_mask, output_tensors) |
| 494 | |
| 495 | @property |
| 496 | def layers(self): |
nothing calls this directly
no test coverage detected