Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
co63oc committed Jul 27, 2023
1 parent 2dfa8e3 commit defdc76
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_Tensor_lstsq.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ def compare(
check_dtype=True,
check_stop_gradient=True,
):
if pytorch_result is None:
return

if isinstance(pytorch_result, (tuple, list)):
for i in range(len(pytorch_result)):
self.compare(self.pytorch_api, pytorch_result[i], paddle_result[i])
Expand Down Expand Up @@ -64,7 +61,7 @@ def test_case_1():
try:
result = x.lstsq(y)
except:
result = None
result = []
"""
)
obj.run(pytorch_code, ["result"])
Expand All @@ -79,7 +76,7 @@ def test_case_2():
try:
result = x.lstsq(A=y)
except:
result = None
result = []
"""
)
obj.run(pytorch_code, ["result"])

0 comments on commit defdc76

Please sign in to comment.