Skip to content

Commit c796d26

Browse files
authored
Merge pull request #1559 from pytorch/frank-wei-patch-1
Update test_flatten_aten and test_reshape_aten due to PT2.0 changed tracer behavior for these ops
2 parents bcfedc7 + a760994 commit c796d26

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

py/torch_tensorrt/fx/test/converters/aten_op/test_flatten_aten.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def forward(self, x):
2727
self.run_test(
2828
Flatten(start_dim, end_dim),
2929
inputs,
30-
expected_ops={torch.ops.aten._reshape_alias.default},
30+
expected_ops={torch.ops.aten.view.default},
3131
test_implicit_batch_dim=(start_dim != 0),
3232
)
3333

py/torch_tensorrt/fx/test/converters/aten_op/test_reshape_aten.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def forward(self, x):
2525
self.run_test(
2626
TestModule(target_shape),
2727
inputs,
28-
expected_ops={torch.ops.aten._reshape_alias.default},
28+
expected_ops={torch.ops.aten.view.default},
2929
)
3030

3131
## TODO: proxytensor tracer does not support output size containing -1. If dim=0 is set to -1 for dynamic batch,

0 commit comments

Comments
 (0)