MCPcopy
hub / github.com/NVIDIA/TensorRT-LLM / log

Method log

tensorrt_llm/logger.py:103–109  ·  view source on GitHub ↗
(self, severity, *msg)

Source from the content-addressed store, hash-verified

101 return self._trt_logger
102
103 def log(self, severity, *msg):
104 parts = [f"[{self.PREFIX}]"]
105 if self.rank is not None:
106 parts.append(f"[RANK {self.rank}]")
107 parts.append(severity)
108 parts.extend(map(str, msg))
109 self._func_wrapper(severity)(" ".join(parts))
110
111 def log_once(self, severity, *msg, key):
112 assert key is not None, "key is required for log_once"

Callers 15

log_onceMethod · 0.95
criticalMethod · 0.95
errorMethod · 0.95
warningMethod · 0.95
infoMethod · 0.95
debugMethod · 0.95
mha_refFunction · 0.45
test_logMethod · 0.45
get_logprobsFunction · 0.45
yarn_get_mscaleFunction · 0.45
yarn_get_mscaleFunction · 0.45
__init__Method · 0.45

Calls 2

_func_wrapperMethod · 0.95
appendMethod · 0.45

Tested by 4

test_logMethod · 0.36
get_logprobsFunction · 0.36
yarn_get_mscaleFunction · 0.36
yarn_get_mscaleFunction · 0.36