Support dense attributes in mod_arith constant folding and canonicalization · Issue #1759 · google/heir · GitHub
More Web Proxy on the site http://driver.im/
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently it only supports scalars, but the mod_arith.constant op is elementwise and has uses now that involve dense attributes. Also cf. #1758 since if/when that lands it will greatly simplify the work. Before that PR, one will need to ensure the attributes passed along the folding chain use an underlying integer type (IntegerAttr or DenseIntElementsAttr) corresponding to the modulus storage type. After that PR, one should be able to just use a DenseIntElementsAttr that is typed as a tensor of ModArith types.
The text was updated successfully, but these errors were encountered:
j2kun
changed the title
Support dense attributes in mod_arith constant folding
Support dense attributes in mod_arith constant folding and canonicalization
Apr 23, 2025
Currently it only supports scalars, but the
mod_arith.constant
op is elementwise and has uses now that involve dense attributes. Also cf. #1758 since if/when that lands it will greatly simplify the work. Before that PR, one will need to ensure the attributes passed along the folding chain use an underlying integer type (IntegerAttr
orDenseIntElementsAttr
) corresponding to the modulus storage type. After that PR, one should be able to just use aDenseIntElementsAttr
that is typed as a tensor of ModArith types.The text was updated successfully, but these errors were encountered: