Hi all,
When I try to compile a TorchScript module that includes use of the spconv library, I get an error claiming that:
‘Tensor’ boject has no attribute or method ‘data_ptr’.
I believe this is because ‘data_ptr’ is defined in a parent class of Tensor - ‘TensorBase’. Since TorchScript doesn’t do inheritence, it can’t find this method.
I’ve tried asserting that the tensor is an instance of torch.BaseTensor (or torch._C.BaseTensor). That fails, claiming that that type can’t be found.
Can anyone think of a way to make this work?