ATen icon indicating copy to clipboard operation
ATen copied to clipboard

Ability to mark ATen tensor non-resizable

Open ezyang opened this issue 6 years ago • 0 comments

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.

ezyang avatar Jul 20 '17 15:07 ezyang