MCPcopy 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

iterateMethod · 0.80
import_from_scriptFunction · 0.80
test_unswapped_arrayMethod · 0.80
test_swapped_arrayMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected