Skip to content
This repository has been archived by the owner on Feb 16, 2023. It is now read-only.

Slices of slices of Tensors aren't being registered. #171

Closed
jvmncs opened this issue Apr 4, 2018 · 2 comments
Closed

Slices of slices of Tensors aren't being registered. #171

jvmncs opened this issue Apr 4, 2018 · 2 comments
Labels
torch Type: Bug 🐛 Some functionality not working in the codebase as intended

Comments

@jvmncs
Copy link
Contributor

jvmncs commented Apr 4, 2018

When iterating over a slice of a tensor, the new chunks aren't registered. So far, the only known problem with this is that printing large tensors raises an AttributeError, although there are likely other bugs that result that we just don't know about yet.

Code to reproduce: print(torch.FloatTensor(128,128)).

@jvmncs jvmncs added Type: Bug 🐛 Some functionality not working in the codebase as intended torch labels Apr 4, 2018
@robert-wagner
Copy link
Contributor

How does this compare to pure pytorch

@jvmncs
Copy link
Contributor Author

jvmncs commented Apr 4, 2018

Normally, when you do this in pure PyTorch, it will show you a condensed string representation of the tensor (with ellipses in between the first few and last few rows/columns). The code that constructs that string representation is what's breaking on our end.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
torch Type: Bug 🐛 Some functionality not working in the codebase as intended
Projects
None yet
Development

No branches or pull requests

3 participants