MCPcopy Create free account
hub / github.com/zai-org/CodeGeeX / clear

Method clear

codegeex/mindspore/src/metrics.py:40–43  ·  view source on GitHub ↗

Clear the internal evaluation result.

(self)

Source from the content-addressed store, hash-verified

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"""

Callers 4

__init__Method · 0.95
prefetchMethod · 0.45
__init__Method · 0.45
step_endMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected