Sets attributes related to the outputs of the Model.
(self, outputs)
| 2756 | |
| 2757 | @trackable.no_automatic_dependency_tracking |
| 2758 | def _set_output_attrs(self, outputs): |
| 2759 | """Sets attributes related to the outputs of the Model.""" |
| 2760 | outputs = nest.flatten(outputs) |
| 2761 | self.outputs = outputs |
| 2762 | self.output_names = training_utils.generic_output_names(outputs) |
| 2763 | # TODO(scottzhu): Should we cleanup the self._training_endpoints here? |
| 2764 | self.built = True |
| 2765 | |
| 2766 | @property |
| 2767 | def _targets(self): |