You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You should see ``shim.json`` and ``shim.bin`` generated in ``/tmp/torch_tensorrt_{current_user}/shim``.
65
+
When ``TORCHTRT_ENABLE_TENSORRT_API_CAPTURE=1`` is set, capture and replay files are automatically saved under ``debuglogs/capture_replay/`` (i.e., the ``capture_replay`` subdirectory of ``logging_dir``). You should see ``capture.json`` and associated ``.bin`` files generated there.
21
66
22
67
Replay: Build the engine from the capture
23
68
-----------------------------------------
@@ -26,7 +71,7 @@ Use ``tensorrt_player`` to replay the captured build without the original framew
after execution of a lowering pass. Defaults to None.
52
52
save_engine_profile (bool): Whether to save TensorRT engine profiling information.
53
53
Defaults to False.
54
-
capture_tensorrt_api_recording (bool): Whether to enable the capture TensorRT API recording feature, when this is enabled, it will output the catputure TensorRT API recording in the /tmp/torch_tensorrt_{current_user}/shim directory.
55
-
It is part of the TensorRT capture and replay feature, the captured output will be able to replay for debug purpose.
56
-
Defaults to False.
57
54
profile_format (str): Format for profiling data. Choose from 'perfetto', 'trex', 'cudagraph'.
58
55
If you need to generate engine graph using the profiling files, set it to 'trex' and use the C++ runtime.
59
56
If you need to generate cudagraph visualization, set it to 'cudagraph'.
@@ -67,6 +64,31 @@ def __init__(
67
64
"""
68
65
69
66
os.makedirs(logging_dir, exist_ok=True)
67
+
68
+
# Auto-detect TensorRT API capture from environment variable
0 commit comments