ATen
ATen copied to clipboard
Ability to mark ATen tensor non-resizable
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.