-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Closed
Labels
module: printingIssues related to the printing format of tensorsIssues related to the printing format of tensors
Description
numpy deals well with printing arrays.
In [1]: np.array([1, 2, 3])
Out[1]: array([1, 2, 3])
In [2]: print(np.array([1, 2, 3]))
[1 2 3]torch no longer does.
In [3]: torch.tensor([1, 2, 3])
Out[3]: tensor([ 1, 2, 3])
In [4]: print(torch.tensor([1, 2, 3]))
tensor([ 1, 2, 3]) 1 2 3
4 5 6
[torch.FloatTensor of size 2x3]
# was much cleaner (no brackets and commas) and informative (`dtype` and `size`) than
tensor([[ 1, 2, 3],
[ 4, 5, 6]])Aphaniteja, kefirski, Timonzimm, samuelbroscheit, benwu232 and 4 more
Metadata
Metadata
Assignees
Labels
module: printingIssues related to the printing format of tensorsIssues related to the printing format of tensors