Access data, size, type of storage in ATen c++

It used to be possible to get data, size & type from a storage object.

e.g. for Tensor pointer t:

Tensor *t
auto s=t->storage(); n=s->size(); v=s->data(); Type T=s->type();

These have been made private, how are these attributes to be accessed now?


The best I could figure out is to use pImpl(), e.g.

Tensor *t = …
auto s=t->storage()->pImpl(); n=s->size(); v=s->data();