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

Function wrapper

tensorrt_llm/llmapi/utils.py:38–44  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

36
37 @wraps(func)
38 def wrapper(*args, **kwargs):
39 try:
40 return func(*args, **kwargs)
41 except Exception as e:
42 logger_debug(f"Exception in {func.__name__}: {e}\n", "red")
43 traceback.print_exc()
44 raise e
45
46 return wrapper
47

Callers

nothing calls this directly

Calls 2

logger_debugFunction · 0.85
funcFunction · 0.50

Tested by

no test coverage detected