Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
toc
Method · 0.95
persistent_class
Function · 0.45
forward
Method · 0.45
save_pretrained
Function · 0.45
parse_import
Method · 0.45
get_case_model_info
Function · 0.45
discover_plugins
Function · 0.45
panoptic_seg_masks_to_image
Function · 0.45
postprocess
Method · 0.45
preprocess
Method · 0.45
load_index
Method · 0.45
add_passage
Method · 0.45
Calls
no outgoing calls
Tested by
1
get_case_model_info
Function · 0.36