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

Method clear

codegeex/mindspore/src/metrics.py:77–80  ·  view source on GitHub ↗

Clear the internal evaluation result.

(self)

Source from the content-addressed store, hash-verified

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

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected