[Feature Request] Make OrtValue compatible with numpy __array__
and dlpack protocols
#24071
Labels
api
issues related to all other APIs: C, C++, Python, etc.
feature request
request for unsupported feature or enhancement
python
Pull requests that update Python code
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature request
For a pythonic type conversion and data sharing user experience.
Describe scenario use case
DLPack has been enabled in #23110.
onnxruntime.OrtValue
class and allowfrom_dlpack
to call__dlpack__
on source tensors automatically.Similarly, we should also implement https://numpy.org/devdocs/user/basics.interoperability.html to modernize the class.
cc @snnn @xadupre @baijumeswani
The text was updated successfully, but these errors were encountered: