Skip to content

Commit

Permalink
modify doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman96 committed Aug 24, 2022
1 parent 1c1220a commit 5b4af77
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/paddle/tensor/creation.py
Expand Up @@ -1931,6 +1931,7 @@ def triu_indices(row, col=None, offset=0, dtype='int64'):
whose row and col is known. Indices are ordered based on row and then columns.
The upper triangular part of the matrix is defined as the elements on
and above the diagonal.
Args:
row (int): The input x which is a int number describe the number of row of the matrix.
col (int, optional): The input x which is a int number describe the number of col of the matrix.
Expand All @@ -1946,6 +1947,7 @@ def triu_indices(row, col=None, offset=0, dtype='int64'):
Returns:
Tensor: Results of the indices of upper triangular part of a row * col matrix,
where the first row contains row coordinates of and the second row contains column coordinates.
Examples:
.. code-block:: python
Expand Down

0 comments on commit 5b4af77

Please sign in to comment.