MCPcopy Create free account
hub / github.com/NVIDIA/TensorRT-LLM / free_hostfunc_user_data

Function free_hostfunc_user_data

tensorrt_llm/_torch/hostfunc.py:30–34  ·  view source on GitHub ↗
(handle: int)

Source from the content-addressed store, hash-verified

28
29
30def free_hostfunc_user_data(handle: int):
31 if handle not in HOSTFUNC_USER_DATA_HANDLES:
32 raise ValueError(f"Hostfunc user data handle {handle} not found.")
33 bindings.free_hostfunc_user_data(handle)
34 HOSTFUNC_USER_DATA_HANDLES.remove(handle)
35
36
37def free_all_hostfunc_user_data():

Callers

nothing calls this directly

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected