Skip to content

Commit

Permalink
modify docs_en
Browse files Browse the repository at this point in the history
  • Loading branch information
haohongxiang committed Jan 6, 2022
1 parent baa0330 commit 2fb68a4
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python/paddle/tensor/linalg.py
Original file line number Diff line number Diff line change
Expand Up @@ -2627,11 +2627,13 @@ def lstsq(x, y, rcond=None, driver=None, name=None):
should be one of float32, float64.
y (Tensor): A tensor with shape ``(*, M, K)`` , the data type of the input Tensor ``y``
should be one of float32, float64.
rcond(float, optional): A float pointing number used to determine the effective rank of ``x``.
If ``rcond`` is None, it will be set to max(M, N) times the machine precision of x_dtype.
driver(str, optional): The name of LAPACK method to be used. For CPU inputs the valid values
are ‘gels’, ‘gelsy’, ‘gelsd, ‘gelss’. For CUDA input, the only valid driver is ‘gels’. If
``driver`` is None, ‘gelsy’ is used for CPU inputs and ‘gels’ for CUDA inputs.
rcond(float, optional): The default value is None. A float pointing number used to determine
the effective rank of ``x``. If ``rcond`` is None, it will be set to max(M, N) times the
machine precision of x_dtype.
driver(str, optional): The default value is None. The name of LAPACK method to be used. For
CPU inputs the valid values are ‘gels’, ‘gelsy’, ‘gelsd, ‘gelss’. For CUDA input, the only
valid driver is ‘gels’. If ``driver`` is None, ‘gelsy’ is used for CPU inputs and ‘gels’
for CUDA inputs.
name(str, optional): The default value is None. Normally there is no need for user to set
this property. For more information, please refer to :ref:`api_guide_Name`.
Expand All @@ -2649,7 +2651,6 @@ def lstsq(x, y, rcond=None, driver=None, name=None):
.. code-block:: python
import paddle
import numpy as np
paddle.set_device("cpu")
x = paddle.to_tensor([[1, 3], [3, 2], [5, 6.]])
Expand Down

0 comments on commit 2fb68a4

Please sign in to comment.