// RUN: mlir-opt -emit-bytecode %s | mlir-opt | FileCheck %s //===----------------------------------------------------------------------===// // AnyQuantized //===----------------------------------------------------------------------===// // CHECK-LABEL: parseAnyFullySpecified module @parseAnyFullySpecified attributes { // CHECK: bytecode.test = !quant.any:f32> bytecode.test = !quant.any:f32> } {} // CHECK-LABEL: parseAnyNoExpressedType module @parseAnyNoExpressedType attributes { // CHECK: bytecode.test = !quant.any> bytecode.test = !quant.any> } {} // CHECK-LABEL: parseAnyOnlyStorageType module @parseAnyOnlyStorageType attributes { // CHECK: bytecode.test = !quant.any> bytecode.test = !quant.any> } {} //===----------------------------------------------------------------------===// // CalibratedQuantized //===----------------------------------------------------------------------===// // CHECK-LABEL: parseCalibrated module @parseCalibrated attributes { // CHECK: !quant.calibrated> bytecode.test = !quant.calibrated> } {} //===----------------------------------------------------------------------===// // UniformQuantized //===----------------------------------------------------------------------===// // CHECK-LABEL: parseUniformPerLayer module @parseUniformPerLayer attributes { // CHECK: !quant.uniform:f32, 9.987200e-01:127> bytecode.test = !quant.uniform:f32, 9.987200e-01:127> } {} //===----------------------------------------------------------------------===// // UniformQuantizedPerAxis //===----------------------------------------------------------------------===// // CHECK-LABEL: parseUniformPerAxisScaleZero module @parseUniformPerAxisScaleZero attributes { // CHECK: !quant.uniform bytecode.test = !quant.uniform } {} // CHECK-LABEL: parseUniformPerAxisScaleNoZero module @parseUniformPerAxisScaleNoZero attributes { // CHECK: !quant.uniform bytecode.test = !quant.uniform } {} // CHECK-LABEL: parseUniformPerAxisMixed module @parseUniformPerAxisMixed attributes { // CHECK: !quant.uniform bytecode.test = !quant.uniform } {} //===----------------------------------------------------------------------===// // UniformQuantizedSubChannel //===----------------------------------------------------------------------===// // CHECK-LABEL: parseUniformSubChannel module @parseUniformSubChannel attributes { // CHECK: !quant.uniform bytecode.test = !quant.uniform } {}