Skip to content

Commit

Permalink
address feedback:2
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Apr 18, 2024
1 parent cf9e0e1 commit a8f98e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions stablehlo/tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ add_mlir_dialect_library(CheckOps
CheckOpsIncGen

LINK_LIBS PUBLIC
StablehloBase
StablehloReferenceNumPy
StablehloReferenceTensor
MLIRIR
Expand Down
2 changes: 1 addition & 1 deletion stablehlo/tests/ops_stablehlo_quantized.mlir
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ func.func @quantized_element_type_c5(%arg0: tensor<1x2x!quant.uniform<i4:f16, 10
// -----

func.func @quantized_element_type_c5(%arg0: tensor<1x2x!quant.uniform<i4:f16, 4.960464e-08>>) {
// expected-error-re@+1 {{perand #0 must be ranked tensor of {{.*}} 4/8/16/32-bit uniform quantized signed integer or 4/8/16/32-bit uniform quantized unsigned integer or 4/8/16/32-bit uniform quantized per axis signed integer or 4/8/16/32-bit uniform quantized per axis unsigned integer values, but got 'tensor<1x2x!quant.uniform<i4:f16, 4.9604639999999998E-8>>'}}
// expected-error-re@+1 {{operand #0 must be ranked tensor of {{.*}} 4/8/16/32-bit uniform quantized signed integer or 4/8/16/32-bit uniform quantized unsigned integer or 4/8/16/32-bit uniform quantized per axis signed integer or 4/8/16/32-bit uniform quantized per axis unsigned integer values, but got 'tensor<1x2x!quant.uniform<i4:f16, 4.9604639999999998E-8>>'}}
%0 = stablehlo.add %arg0, %arg0 : tensor<1x2x!quant.uniform<i4:f16, 4.960464e-08>>
func.return
}
Expand Down

0 comments on commit a8f98e1

Please sign in to comment.