Skip to content

Commit 2b6775a

Browse files
committed
e2e test
1 parent 4cab154 commit 2b6775a

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/function_libs/torch_lib/e2e_ops_tests.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,20 @@ def forward(self, x):
238238
)
239239
_testing.assert_onnx_program(onnx_program)
240240

241+
def test_dft_axis_promoted_from_attribute_to_input(self):
242+
class Model(torch.nn.Module):
243+
def forward(self, x):
244+
return torch.ops.aten._fft_r2c(x, [0], normalization=1, onesided=True) # pylint: disable=protected-access
245+
246+
onnx_program = torch.onnx.export(
247+
Model(),
248+
(torch.randn(2, 3),),
249+
opset_version=20,
250+
dynamic_shapes=({0: "dim_x"},),
251+
dynamo=True,
252+
)
253+
_testing.assert_onnx_program(onnx_program)
254+
241255

242256
if __name__ == "__main__":
243257
unittest.main()

0 commit comments

Comments
 (0)