MCPcopy Create free account
hub / github.com/huggingface/evaluate / patch_intensive_calls

Method patch_intensive_calls

tests/test_metric_common.py:138–143  ·  view source on GitHub ↗
(self, evaluation_module_name, module_name)

Source from the content-addressed store, hash-verified

136
137 @contextmanager
138 def patch_intensive_calls(self, evaluation_module_name, module_name):
139 if evaluation_module_name in self.INTENSIVE_CALLS_PATCHER:
140 with self.INTENSIVE_CALLS_PATCHER[evaluation_module_name](module_name):
141 yield
142 else:
143 yield
144
145 @contextmanager
146 def use_local_metrics(self, evaluation_module_type):

Callers 1

test_loadMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected