corrected numpy printoptions

This commit is contained in:
Glenn Jocher 2018-10-03 13:55:56 +02:00
parent 0058431e2e
commit bce94f6ade
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ import torch.nn.functional as F
# Set printoptions # Set printoptions
torch.set_printoptions(linewidth=1320, precision=5, profile='long') 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): def load_classes(path):