Skip to content

Commit

Permalink
corrected numpy printoptions
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-jocher committed Oct 3, 2018
1 parent 0058431 commit bce94f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

# Set printoptions
torch.set_printoptions(linewidth=1320, precision=5, profile='long')
np.set_printoptions(linewidth=320, formatter={'float_kind': '{11.5g}'.format}) # format short g, %precision=5
np.set_printoptions(linewidth=320, formatter={'float_kind': '{:11.5g}'.format}) # format short g, %precision=5


def load_classes(path):
Expand Down

0 comments on commit bce94f6

Please sign in to comment.