Skip to content

Commit 4ed0992

Browse files
committed
Add decompositions to aot call
1 parent a4ee3e2 commit 4ed0992

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

py/torch_tensorrt/fx/tracer/dispatch_tracer/tensorrt_dynamo_backend.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717

1818
from torch._functorch.aot_autograd import aot_module_simplified, make_boxed_compiler
1919

20+
from torch._inductor.decomposition import decompositions
21+
22+
DECOMPOSITIONS = decompositions.copy()
2023
MAX_SPLITS_THRESHOLD = 10
2124

2225

@@ -26,6 +29,7 @@ def tensorrt_backend(gm, sample_inputs):
2629
gm,
2730
sample_inputs,
2831
fw_compiler=make_boxed_compiler(fx2trt_compiler),
32+
decompositions=DECOMPOSITIONS,
2933
)
3034

3135

0 commit comments

Comments
 (0)