MCPcopy Index your code
hub / github.com/NVIDIA/TensorRT-LLM / register

Method register

tensorrt_llm/llmapi/utils.py:194–196  ·  view source on GitHub ↗
(self, obj: Any, callback_name: str)

Source from the content-addressed store, hash-verified

192 callback()
193
194 def register(self, obj: Any, callback_name: str):
195 assert callable(getattr(obj, callback_name, None))
196 self._obj_refs_and_callbacks.append((weakref.ref(obj), callback_name))
197
198
199exception_handler = ExceptionHandler()

Callers 10

pytest_configureFunction · 0.45
test_disagg.pyFile · 0.45
__init__Method · 0.45
__init__Method · 0.45
executor.pyFile · 0.45
setup_mainloopMethod · 0.45
setup_lazilyMethod · 0.45
__init__Method · 0.45
from_hugging_faceMethod · 0.45

Calls 1

appendMethod · 0.45

Tested by 2

pytest_configureFunction · 0.36