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 4
4
5
5
import torch
6
6
from torch ._decomp import register_decomposition
7
- from torch ._export .utils import _decomp_table_to_post_autograd_aten
8
7
from torch ._ops import OpOverload
8
+ from torch .export import default_decompositions
9
9
from torch_tensorrt .dynamo ._defaults import default_device
10
10
from torch_tensorrt .dynamo .conversion .converter_utils import get_positive_dim
11
11
from torch_tensorrt .dynamo .utils import to_torch_device
@@ -412,7 +412,8 @@ def get_decompositions(
412
412
return {** CORE_ATEN_DECOMPOSITIONS_FILTERED , ** TORCH_TRT_DECOMPOSITIONS }
413
413
else :
414
414
# 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 ()
416
417
DECOMP_TABLE_FILTERED : Dict [OpOverload , Callable [[Any ], Any ]] = {
417
418
decomp : decomp_table [decomp ]
418
419
for decomp in decomp_table
You can’t perform that action at this time.
0 commit comments