Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/how_to/deploy/tensorrt.rst
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ regular TVM CUDA compilation and code generation.
.. code:: python

from tvm.relay.op.contrib.tensorrt import partition_for_tensorrt
mod, config = partition_for_tensorrt(mod, params)
mod = partition_for_tensorrt(mod, params)


Build the Relay graph, using the new module and config returned by partition_for_tensorrt. The
Expand All @@ -107,7 +107,7 @@ PassContext so the values can be read during compilation.
.. code:: python

target = "cuda"
with tvm.transform.PassContext(opt_level=3, config={'relay.ext.tensorrt.options': config}):
with tvm.transform.PassContext(opt_level=3):
lib = relay.build(mod, target=target, params=params)


Expand Down