Clear the internal evaluation result.
(self)
| 38 | self.is_last_stage = (stage_id == pipeline_stages - 1) |
| 39 | |
| 40 | def clear(self): |
| 41 | """Clear the internal evaluation result.""" |
| 42 | self.PPL = [] |
| 43 | self.tokens_count = 0 |
| 44 | |
| 45 | def update(self, *inputs): # inputs |
| 46 | """Update list of ppl""" |