[mlir] Get array from the dense elements attribute with buffer protocol.
- Add `mlirElementsAttrGetType` C API. - Add `def_buffer` binding to PyDenseElementsAttribute. - Implement the protocol to access the buffer. Differential Revision: https://reviews.llvm.org/D91021
Loading
Please sign in to comment