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

Method register_processors

modelscope/trainers/trainer.py:1380–1385  ·  view source on GitHub ↗

Register processors to hooks

(self)

Source from the content-addressed store, hash-verified

1378 return hooks
1379
1380 def register_processors(self):
1381 """Register processors to hooks
1382 """
1383 for hook in self.hooks:
1384 if hasattr(hook, 'register_processor'):
1385 hook.register_processor(self)
1386
1387 def get_hook(self, cls):
1388 return [h for h in self._hooks if h.__class__ == cls]

Callers 7

trainMethod · 0.95
predictMethod · 0.95
evaluateMethod · 0.95

Calls 1

register_processorMethod · 0.45

Tested by 4