Skip to content

Commit

Permalink
fix: Set dynamic=False in torch.compile call (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
gs-olive authored Aug 22, 2023
1 parent 148b3ba commit 1133432
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion py/torch_tensorrt/_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,10 @@ def torch_compile(module: torch.nn.Module, **kwargs: Any) -> Any:
"""
from torch_tensorrt.dynamo.backend import torch_tensorrt_backend

boxed_fn = torch.compile(module, backend=torch_tensorrt_backend, options={**kwargs})
# TODO: Remove dynamic=False when SymInt Dynamic shape support is ready
boxed_fn = torch.compile(
module, backend=torch_tensorrt_backend, dynamic=False, options={**kwargs}
)

return boxed_fn

Expand Down

0 comments on commit 1133432

Please sign in to comment.