Skip to content

Commit

Permalink
adjust parameter order for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
zhiqiu committed Aug 31, 2021
1 parent ce2c819 commit c7293d5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions python/paddle/tensor/to_string.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,18 @@ class PrintOptions(object):
def set_printoptions(precision=None,
threshold=None,
edgeitems=None,
linewidth=None,
sci_mode=None):
sci_mode=None,
linewidth=None):
"""Set the printing options for Tensor.
NOTE: The function is similar with numpy.set_printoptions()
Args:
precision (int, optional): Number of digits of the floating number, default 8.
threshold (int, optional): Total number of elements printed, default 1000.
edgeitems (int, optional): Number of elements in summary at the begining and ending of each dimension, default 3.
linewidth (int, optional): Number of characters each line, default 80.
sci_mode (bool, optional): Format the floating number with scientific notation or not, default False.
linewidth (int, optional): Number of characters each line, default 80.
Returns:
None.
Expand Down

1 comment on commit c7293d5

@paddle-bot-old
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Congratulation! Your pull request passed all required CI. You could ask reviewer(s) to approve and merge. 🎉

Please sign in to comment.