Skip to content

Commit

Permalink
add blank lines
Browse files Browse the repository at this point in the history
  • Loading branch information
Rayman96 committed Aug 23, 2022
1 parent d3c8854 commit b194791
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/paddle/tensor/creation.py
Expand Up @@ -1936,9 +1936,11 @@ def triu_indices(row, col=None, offset=0, dtype='int64'):
col (int, optional): The input x which is a int number describe the number of col of the matrix.
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, include just as few diagonals above the main diagonal.
- If offset < 0, excludes just as few diagonals below the main diagonal.
dtype (str|np.dtype|paddle.dtype, optional): the data type of the output tensor,
can be int32, int64, default value is int64.
Returns:
Expand Down

0 comments on commit b194791

Please sign in to comment.