pytorch
b1310b46 - [quant][core][improvement] Added support for data_ptr<T> for quantized tensors to return pointer to underlying int type (e.g., int8* instead of qint*)

Commit
2 years ago
[quant][core][improvement] Added support for data_ptr<T> for quantized tensors to return pointer to underlying int type (e.g., int8* instead of qint*) Summary: Previously, data_ptr<T> did not provide support for returning a pointer to the underlying int tensor. Instead, it returned a pointer to a quantized tensor (e.g., qint*), and backend users had to call, e.g., reinterpret_cast<int8*>(quantized_tensor.data_ptr()) to cast it to an int* pointer. This PR enables direct support for returning the underlying pointer without need for casting. Pull Request resolved: https://github.com/pytorch/pytorch/pull/75643 Approved by: https://github.com/ezyang
Author
Committer
Parents
Loading