Skip to content

Ability to mark ATen tensor non-resizable #28

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

Open
ezyang opened this issue Jul 20, 2017 · 0 comments
Open

Ability to mark ATen tensor non-resizable #28

ezyang opened this issue Jul 20, 2017 · 0 comments

Comments

@ezyang
Copy link
Contributor

ezyang commented Jul 20, 2017

If a user decides to convert an ATen tensor into a dlpack/numpy one, sharing underlying data, we MUST NOT resize the tensor. Unfortunately, there is no way in the current ATen API to set TH_STORAGE_RESIZABLE.

zdevito pushed a commit that referenced this issue Dec 5, 2018
Summary:
Pull Request resolved: pytorch/FBGEMM#28

Pull Request resolved: pytorch/pytorch#14516

This is the first diff in a series of diffs that will separate out avx2 specific code in separate files. The goal is to compile as little as possible code with avx2 and avx512 compiler flags.

Reviewed By: jianyuh

Differential Revision: D13248376

fbshipit-source-id: 401c2e9d3cd96c420fd08c3efa011febce96ffbb
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

No branches or pull requests

1 participant