Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/NVIDIA/TensorRT
/ callback
Method
callback
tools/Polygraphy/tests/logger/test_logger.py:56–58 ·
view source on GitHub ↗
(module_severity)
Source
from the content-addressed store, hash-verified
54
num_times_called = 0
55
56
def
callback(module_severity):
57
nonlocal num_times_called
58
num_times_called += 1
59
60
logger.register_callback(callback)
61
assert num_times_called == 1
Callers
4
iterate
Method · 0.80
import_from_script
Function · 0.80
test_unswapped_array
Method · 0.80
test_swapped_array
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected