Skip to content

Commit

Permalink
modify doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman96 committed Aug 23, 2022
1 parent b194791 commit 1c1220a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/paddle/tensor/creation.py
Original file line number Diff line number Diff line change
Expand Up @@ -1937,7 +1937,7 @@ def triu_indices(row, col=None, offset=0, dtype='int64'):
default value for col is None, then it will be set equal to row, indicting a square matix.
offset (int, optional): The offset to consider, default value is 0.
- If offset = 0, all elements on and below the main diagonal are retained.
- If offset = 0, all elements on and above the main diagonal are retained.
- If offset > 0, include just as few diagonals above the main diagonal.
- If offset < 0, excludes just as few diagonals below the main diagonal.
Expand Down

0 comments on commit 1c1220a

Please sign in to comment.