-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Description
print(net.output.numpy())
print(net.output)outputs:
[[ 0.13239434 -0.29563415 -1.65602779 ..., 0.40573671 2.0148921
2.12263751]
[ 0.40269312 -0.46252817 -1.35247242 ..., 0.53116792 1.76924741
1.93715036]]
Traceback (most recent call last):
File "loader.py", line 94, in <module>
print(net.output)
File "/home/zagoruys/anaconda2/lib/python2.7/site-packages/torch/Tensor.py", line 87, in __str__
return TensorPrinting.printTensor(self)
File "/home/zagoruys/anaconda2/lib/python2.7/site-packages/torch/TensorPrinting.py", line 110, in printTensor
strt = _printMatrix(self)
File "/home/zagoruys/anaconda2/lib/python2.7/site-packages/torch/TensorPrinting.py", line 69, in _printMatrix
strt += ' '.join(fmt.format(val/scale) for val in self.select(0, l).narrow(0, firstColumn, lastColumn-firstColumn+1)) + '\n'
ValueError: Invalid arguments! Got (int, int, float), but expected (long dimension, long start, long length)
tbh I would rely on numpy for all printing
Metadata
Metadata
Assignees
Labels
No labels