Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replaced the use of Tensor.index(m) with Tensor[m] #289

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

ahmed-shariff
Copy link
Contributor

The later versions of pytorch don't seem to support the tensor.index function. Hence, I have replaced the index function with the [] indexing.

@ahmed-shariff
Copy link
Contributor Author

Also it would be nice if someone can test this on a system with sufficient memory to check if it works in later version of pytorch and python3.7. My pc only has 2GB of memory, and so far I can squeeze out one step.

@MathewXiren
Copy link

It works in pytorch 0.4.1, python 3.6.

@ahmed-shariff
Copy link
Contributor Author

I should be able to get access to a better pc coming week, will test this on the master branch of pytorch and let you guys know how it goes

@ahmed-shariff
Copy link
Contributor Author

This works in pytroch '0.5.0a0+f126687' (built from source on pytorch/pytorch@f126687)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants