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

Function _wrapped

modelscope/utils/hf_util/patcher.py:656–659  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

654 """
655
656 def _wrapped(*args, **kwargs):
657 import kernels
658 with _kernels_patch_scope():
659 return getattr(kernels, attr_name)(*args, **kwargs)
660
661 _wrapped.__name__ = _wrapped.__qualname__ = attr_name
662 return _wrapped

Callers

nothing calls this directly

Calls 1

_kernels_patch_scopeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…