Skip to content

Commit

Permalink
Set driver default
Browse files Browse the repository at this point in the history
  • Loading branch information
matinehAkhlaghinia committed Oct 16, 2024
1 parent f8bac9a commit 2c99db1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions experimental/torch_xla2/torch_xla2/ops/jaten.py
Original file line number Diff line number Diff line change
Expand Up @@ -2413,10 +2413,7 @@ def _aten_linalg_eigh(A, UPLO='L'):


@op(torch.ops.aten.linalg_lstsq)
def _aten_linalg_lstsq(A, B, rcond=None, driver=None):
if not driver:
driver = 'gelsy' # Set default driver

def _aten_linalg_lstsq(A, B, rcond=None, driver='gelsy'):
input_dtype = A.dtype

m = A.shape[-2]
Expand Down

0 comments on commit 2c99db1

Please sign in to comment.