https://pytorch.org/cppdocs/notes/tensor_basics.html#using-externally-created-data 1 discusses torch::from_blob as creating a “view”, but doesn’t formally describe the lifetime (e.g. under what circumstances the deleter is invoked).