From bce94f6adec6988c07bf295ea50bf59299974886 Mon Sep 17 00:00:00 2001 From: Glenn Jocher Date: Wed, 3 Oct 2018 13:55:56 +0200 Subject: [PATCH] corrected numpy printoptions --- utils/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/utils.py b/utils/utils.py index 8eebdc33..95abacce 100755 --- a/utils/utils.py +++ b/utils/utils.py @@ -7,7 +7,7 @@ import torch.nn.functional as F # 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):