This is an archive of the discontinued LLVM Phabricator instance.

[mlir] Get array from the dense elements attribute with array property.
AbandonedPublic

Authored by zhanghb97 on Nov 12 2020, 12:56 AM.

Details

Summary
  • Add mlirDenseElementsAttrGetRawData C API.
  • Add array property binding to PyDenseElementsAttribute.

Diff Detail

Event Timeline

zhanghb97 created this revision.Nov 12 2020, 12:56 AM
zhanghb97 requested review of this revision.Nov 12 2020, 12:56 AM

This patch implements array property for dense elements attribute to get array. There is also a buffer protocol method in D91021.
Let's compare and choose one.

zhanghb97 abandoned this revision.Nov 18 2020, 12:34 AM