openxla / stablehlo

Backward compatible ML compute opset inspired by HLO/MHLO
Apache License 2.0
357 stars 100 forks source link

Port mhlo-quant-legalize-to-int pass to StableHLO #2383

Closed sdasgup3 closed 3 weeks ago

sdasgup3 commented 4 weeks ago

This is the port of mhlo-quant-legalize-to-int pass to Stablehlo.

A bunch of tests needs to be updates based on:

Also, updated the original code to address creation of attributes of type I64ArrayAttr instead of DenseIntElementsAttr.