Skip to content

Commit

Permalink
[DOCS]Correct docs for torch.lu_solve (#47762)
Browse files Browse the repository at this point in the history
Summary:
Fixes #43498 by correcting the function signature of `torch.lu_solve`

Pull Request resolved: #47762

Reviewed By: ljk53

Differential Revision: D24900259

Pulled By: ailzhang

fbshipit-source-id: 2a43170bde57e03d44025b23e3abcda169cfc9e2
  • Loading branch information
bharatr21 authored and facebook-github-bot committed Dec 8, 2020
1 parent bea88ee commit 3aeb9cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion torch/_torch_docs.py
Expand Up @@ -4638,7 +4638,7 @@ def merge_dicts(*dicts):

add_docstr(torch.lu_solve,
r"""
lu_solve(input, LU_data, LU_pivots, *, out=None) -> Tensor
lu_solve(b, LU_data, LU_pivots, *, out=None) -> Tensor
Returns the LU solve of the linear system :math:`Ax = b` using the partially pivoted
LU factorization of A from :meth:`torch.lu`.
Expand Down
2 changes: 1 addition & 1 deletion torch/overrides.py
Expand Up @@ -505,7 +505,7 @@ def get_testing_overrides() -> Dict[Callable, Callable]:
torch.lt: lambda input, other, out=None: -1,
torch.less: lambda input, other, out=None: -1,
torch.lu: lambda A, pivot=True, get_infos=False, out=None: -1,
torch.lu_solve: lambda input, LU_data, LU_pivots, out=None: -1,
torch.lu_solve: lambda b, LU_data, LU_pivots, out=None: -1,
torch.margin_ranking_loss: lambda input1, input2, target, margin=0, size_average=None, reduce=None, reduction='mean': -1,
torch.masked_fill: lambda input, mask, value: -1,
torch.masked_scatter: lambda input, mask, source: -1,
Expand Down

0 comments on commit 3aeb9cc

Please sign in to comment.