1// RUN: mlir-opt %s -split-input-file -verify-diagnostics -quant-convert-simulated-quantization 2 3// ----- 4// Unsupported quantizable type (i1 is currently not a supported element type). 5func @fakeQuantArgs(tensor<8x4x3xi1>) -> tensor<8x4x3xi1> { 6^bb0(%arg0: tensor<8x4x3xi1>): 7 // expected-error@+1 {{op operand #0 must be tensor of 32-bit float values}} 8 %0 = "quant.const_fake_quant"(%arg0) { 9 min = 1.1 : f32, max = 1.0 : f32, num_bits = 8 10 } : (tensor<8x4x3xi1>) -> tensor<8x4x3xi1> 11 return %0 : tensor<8x4x3xi1> 12} 13