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
@@ -9602,7 +9602,7 @@ def forward(self, x):
9602
9602
[False, True], # center
9603
9603
[False, True], # normalized
9604
9604
[None, False, True], # onesided
9605
-
[None, 60], # length
9605
+
[None, 30, 40], # length
9606
9606
[False, True], # return_complex
9607
9607
)
9608
9608
)
@@ -9644,6 +9644,14 @@ def forward(self, x):
9644
9644
backend=backend,
9645
9645
compute_unit=compute_unit
9646
9646
)
9647
+
eliflengthisnotNoneandreturn_complexisTrue:
9648
+
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