The implementation_attrs attr allows passing of backend specific
attributes to TOSA custom ops.
Also adds a config option to avoid namespace collisions on the
identifier.
Differential D137133
[mlir][TOSA]Add optional attributes to TOSA custom op eric-k256 on Oct 31 2022, 4:05 PM. Authored by
Details The implementation_attrs attr allows passing of backend specific Also adds a config option to avoid namespace collisions on the
Diff Detail
Event Timeline
|
Can we make this more flexible than just a string? I really don't want to have to stringify a bunch of metadata. A typical example from Torch-MLIR is
So we would need a list of integers, a string mode, and an optional float. My ideal representation for this would be something like an ArrayAttr of (dense array attr $pad, StringAttr $mode, FloatAttr | "none") -- I'm not sure about the representation for "none".
The alternative would be to JSONify everything :/