Remove final calculations
@@ -209,8 +209,6 @@ class TorchHistory(object):
np = util.get_module("numpy", "Could not import numpy")
bins_np = bins.numpy()
tensor_np = tensor.numpy()
- print("bins_np: {}".format(bins_np))
- print("tensor_np: {}".format(tensor_np))
bin_idx = -1
if tmin > 0:
bin_idx = 0
@@ -230,6 +228,7 @@ class TorchHistory(object):
bin_idx = i
break
+ if False:
tensor_np[bin_idx] += sparse_zeros
tensor = torch.Tensor(tensor_np)
bins = torch.Tensor(bins_np)
