Process and update compiled_metrics. call when using compile/fit API. Args: compiled_metrics: the compiled metrics (model.compiled_metrics). labels: a tensor or a nested structure of tensors. model_outputs: a tensor or a nested structure of tensors. For example, o
(self, compiled_metrics, labels, model_outputs)
| 208 | metric.update_state(labels, model_outputs) |
| 209 | |
| 210 | def process_compiled_metrics(self, compiled_metrics, labels, model_outputs): |
| 211 | """Process and update compiled_metrics. |
| 212 | |
| 213 | call when using compile/fit API. |
| 214 | |
| 215 | Args: |
| 216 | compiled_metrics: the compiled metrics (model.compiled_metrics). |
| 217 | labels: a tensor or a nested structure of tensors. |
| 218 | model_outputs: a tensor or a nested structure of tensors. For example, |
| 219 | output of the keras model built by self.build_model. |
| 220 | """ |
| 221 | compiled_metrics.update_state(labels, model_outputs) |
| 222 | |
| 223 | def train_step(self, |
| 224 | inputs, |
no test coverage detected