Documentation for at::from_blob lifetime

I wasn’t able to find somewhere that documented the lifetime semantics of the buffer passed to at::from_blob.

From what I can tell, it’s something like “a pointer to the passed data buffer is retained for the lifetime of the created at::Tensor handle (which itself is doing some sort of refcounting under the hood); when the refcount maintained by the at::Tensor handles goes to zero, then the deleter is called”. Is that correct?

Thanks in advance. discusses torch::from_blob as creating a “view”, but doesn’t formally describe the lifetime (e.g. under what circumstances the deleter is invoked).