MCPcopy Create free account
hub / github.com/modelscope/modelscope / add

Method add

modelscope/utils/timer.py:32–35  ·  view source on GitHub ↗
(self, time_diff)

Source from the content-addressed store, hash-verified

30 return self.diff
31
32 def add(self, time_diff):
33 self.diff = time_diff
34 self.total_time += self.diff
35 self.calls += 1
36
37 def reset(self):
38 self.total_time = 0.0

Callers 15

tocMethod · 0.95
persistent_classFunction · 0.45
forwardMethod · 0.45
save_pretrainedFunction · 0.45
parse_importMethod · 0.45
get_case_model_infoFunction · 0.45
discover_pluginsFunction · 0.45
postprocessMethod · 0.45
preprocessMethod · 0.45
load_indexMethod · 0.45
add_passageMethod · 0.45

Calls

no outgoing calls

Tested by 1

get_case_model_infoFunction · 0.36