If you are writing a C++ extension function, you can use reinterpret_cast<int64_t*>(tensor.data<float>()). But unfortunately I don’t think that this is well supported in Python. Please file a feature request on GitHub. Thanks!