Page MenuHomePhabricator

[mlir][DenseElementsAttr] Allow for custom floating point types in `getValues`
ClosedPublic

Authored by rriddle on Nov 12 2020, 10:33 PM.

Details

Summary

Some users have native c++ data types that correspond to the floating point values stored within a DenseElementsAttr that do not have a corresponding native C++ data type(e.g. bfloat16/half/etc). This revision allows for such users to use those native types directly, and removes the need to go through APFloat when the much faster native value path is available.

Diff Detail

Event Timeline

rriddle created this revision.Nov 12 2020, 10:33 PM
rriddle requested review of this revision.Nov 12 2020, 10:33 PM
rriddle edited the summary of this revision. (Show Details)Nov 12 2020, 10:35 PM
rriddle added a reviewer: Jing.
Jing accepted this revision.Nov 12 2020, 10:40 PM
This revision is now accepted and ready to land.Nov 12 2020, 10:40 PM
This revision was landed with ongoing or failed builds.Nov 12 2020, 10:52 PM
This revision was automatically updated to reflect the committed changes.