Do you plan to add a kind of tensor conversion? Say, I have a complex data structure that is able to construct a Tensor representation. I would like to store that complexity on a backend, providing users just an API so that they seamlessly pass this data structure into torch functions as a regular tensor.
The developer facing api for that should look like
def __to_tensor__(self, dtype=None, device=None, clone=False):