Clear the internal evaluation result.
(self)
| 75 | self.is_last_stage = (stage_id == pipeline_stages - 1) |
| 76 | |
| 77 | def clear(self): |
| 78 | """Clear the internal evaluation result.""" |
| 79 | self.metric = [] |
| 80 | self.tokens_count = 0 |
| 81 | |
| 82 | def update(self, *inputs): # inputs |
| 83 | """Update list of ppl""" |