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
Copy file name to clipboardExpand all lines: tripy/nvtripy/backend/api/executable.py
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -299,6 +299,44 @@ def add(a, b):
299
299
"""
300
300
json_utils.save(self, path)
301
301
302
+
defserialized_tensorrt_engine(self) ->bytes:
303
+
"""
304
+
Returns the serialized TensorRT engine from the executable.
305
+
306
+
Returns:
307
+
The serialized TensorRT engine as ``bytes``.
308
+
309
+
.. seealso:: Refer to the `TensorRT developer guide <https://docs.nvidia.com/deeplearning/tensorrt/latest/inference-library/python-api-docs.html#deserializing-a-plan>_`
310
+
for details on how to work with serialized TensorRT engines.
0 commit comments