[Mlir-commits] [mlir] [mlir][tosa] Convert RESCALE op multiplier and shift from attributes to inputs (PR #129720)

Georgios Pinitas llvmlistbot at llvm.org
Wed Mar 5 02:07:09 PST 2025


================
@@ -31,6 +31,18 @@ namespace tosa {
 void computeMultiplierAndShift(double scale, int32_t &multiplier,
                                int32_t &shift, int32_t scaleWidth);
 
+// Return a const value for array of int8 vec
+Value getConstTensorInt8(OpBuilder &builder, Location loc,
----------------
GeorgeARM wrote:

Can we implement these as a single templated function?

https://github.com/llvm/llvm-project/pull/129720


More information about the Mlir-commits mailing list