Skip to content

Commit

Permalink
[doc] Update options documentation for torch.compile (#2834)
Browse files Browse the repository at this point in the history
  • Loading branch information
lanluo-nvidia authored and laikhtewari committed May 24, 2024
1 parent f22fa4c commit 36ed711
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion docsrc/dynamo/torch_compile.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,14 @@ Customizeable Settings

Custom Setting Usage
^^^^^^^^^^^^^^^^^

.. code-block:: python
import torch_tensorrt
...
optimized_model = torch.compile(model, backend="torch_tensorrt", dynamic=False,
options={"truncate_long_and_double": True,
"precision": torch.half,
"enabled_precisions": {torch.float, torch.half},
"debug": True,
"min_block_size": 2,
"torch_executed_ops": {"torch.ops.aten.sub.Tensor"},
Expand Down

0 comments on commit 36ed711

Please sign in to comment.