File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
py/torch_tensorrt/dynamo/lowering Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 44
55import torch
66from torch ._decomp import register_decomposition
7- from torch ._export .utils import _decomp_table_to_post_autograd_aten
87from torch ._ops import OpOverload
8+ from torch .export import default_decompositions
99from torch_tensorrt .dynamo ._defaults import default_device
1010from torch_tensorrt .dynamo .conversion .converter_utils import get_positive_dim
1111from torch_tensorrt .dynamo .utils import to_torch_device
@@ -412,7 +412,8 @@ def get_decompositions(
412412 return {** CORE_ATEN_DECOMPOSITIONS_FILTERED , ** TORCH_TRT_DECOMPOSITIONS }
413413 else :
414414 # changes made here due to torch2.6 changes https://github.com/pytorch/pytorch/pull/135080
415- decomp_table = _decomp_table_to_post_autograd_aten ()
415+ # changes made here due to torch2.6 changes https://github.com/pytorch/pytorch/pull/140085
416+ decomp_table = default_decompositions ()
416417 DECOMP_TABLE_FILTERED : Dict [OpOverload , Callable [[Any ], Any ]] = {
417418 decomp : decomp_table [decomp ]
418419 for decomp in decomp_table
You can’t perform that action at this time.
0 commit comments