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

Method _register

modelscope/utils/registry.py:123–129  ·  view source on GitHub ↗
(module_cls)

Source from the content-addressed store, hash-verified

121
122 # if module_cls is None, should return a decorator function
123 def _register(module_cls):
124 self._register_module(
125 group_key=group_key,
126 module_name=module_name,
127 module_cls=module_cls,
128 force=force)
129 return module_cls
130
131 return _register
132

Callers

nothing calls this directly

Calls 1

_register_moduleMethod · 0.95

Tested by

no test coverage detected