You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: coremltools/converters/mil/frontend/torch/test/test_torch_ops.py
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -9540,7 +9540,7 @@ def forward(self, x):
9540
9540
[False, True], # center
9541
9541
[False, True], # normalized
9542
9542
[None, False, True], # onesided
9543
-
[None, 60], # length
9543
+
[None, 30, 40], # length
9544
9544
[False, True], # return_complex
9545
9545
)
9546
9546
)
@@ -9582,6 +9582,14 @@ def forward(self, x):
9582
9582
backend=backend,
9583
9583
compute_unit=compute_unit
9584
9584
)
9585
+
eliflengthisnotNoneandreturn_complexisTrue:
9586
+
withpytest.raises(ValueError, match="New var type `<class 'coremltools.converters.mil.mil.types.type_tensor.tensor.<locals>.tensor'>` not a subtype of existing var type `<class 'coremltools.converters.mil.mil.types.type_tensor.tensor.<locals>.tensor'>`"):
0 commit comments