Skip to content

Commit

Permalink
Adding matmul_integer_to_float16 onnx models (#16978)
Browse files Browse the repository at this point in the history
### Description
Missed adding float16 onnx models generated using
`matmul_integer_to_float.py`



### Motivation and Context
  • Loading branch information
raoanag committed Nov 22, 2023
1 parent 6921d50 commit e0cbbbf
Show file tree
Hide file tree
Showing 5 changed files with 290 additions and 0 deletions.
51 changes: 51 additions & 0 deletions onnxruntime/test/testdata/matmul_integer_to_float16_int8.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
 :�
U
A
B
a_zero_point
b_zero_pointmatmul_output_int32MatMulInteger"MatMulInteger
.
a_scale
b_scale
multiplier mul_right"Mul
A
matmul_output_int32matmul_output_floatcast"Cast*
to
�
5
matmul_output_float

multiplierY
mul_bottom"MulDynamicQuantizeMatMul_fusionZ
A


M
KZ
B


K
NZ
a_scale



Z
b_scale


CZ
a_zero_point


Z
b_zero_point

Cb
Y



M
NB
Expand Down
49 changes: 49 additions & 0 deletions onnxruntime/test/testdata/matmul_integer_to_float16_int8_bias.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
 :�
9
A
Bmatmul_output_int32MatMulInteger"MatMulInteger
.
a_scale
b_scale
multiplier mul_right"Mul
A
matmul_output_int32matmul_output_floatcast"Cast*
to
�
E
matmul_output_float

multipliermul_bottom_output
mul_bottom"Mul
&
mul_bottom_output
biasYadd"AddDynamicQuantizeMatMul_fusionZ
A


M
KZ
B


K
NZ
a_scale



Z
b_scale


CZ
bias


Nb
Y



M
NB
Expand Down
51 changes: 51 additions & 0 deletions onnxruntime/test/testdata/matmul_integer_to_float16_int8_int8.onnx
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
 :�
U
A
B
a_zero_point
b_zero_pointmatmul_output_int32MatMulInteger"MatMulInteger
.
a_scale
b_scale
multiplier mul_right"Mul
A
matmul_output_int32matmul_output_floatcast"Cast*
to
�
5
matmul_output_float

multiplierY
mul_bottom"MulDynamicQuantizeMatMul_fusionZ
A


M
KZ
B


K
NZ
a_scale



Z
b_scale


CZ
a_zero_point


Z
b_zero_point

Cb
Y



M
NB
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
 :�
9
A
Bmatmul_output_int32MatMulInteger"MatMulInteger
.
a_scale
b_scale
multiplier mul_right"Mul
A
matmul_output_int32matmul_output_floatcast"Cast*
to
�
E
matmul_output_float

multipliermul_bottom_output
mul_bottom"Mul
&
mul_bottom_output
biasYadd"AddDynamicQuantizeMatMul_fusionZ
A


M
KZ
B


K
NZ
a_scale



Z
b_scale


CZ
bias


Nb
Y



M
NB
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
 :�
Q
input a_quantizeda_scalea_zpDynamicQuantizeLinear"DynamicQuantizeLinear
a
a_quantized
b_quantized_1
a_zp
b_zp_1matmul_output_int32_1MatMulInteger_1"MatMulInteger
4
a_scale
b_scale_1 multiplier_1 mul_right_1"Mul
G
matmul_output_int32_1matmul_output_float_1cast_1"Cast*
to�
F
matmul_output_float_1
multiplier_1 mul_output_1 mul_bottom_1"Mul
1
mul_output_1
bias_1output_1
bias_add_1"Add
a
a_quantized
b_quantized_2
a_zp
b_zp_2matmul_output_int32_2MatMulInteger_2"MatMulInteger
4
a_scale
b_scale_2 multiplier_2 mul_right_2"Mul
G
matmul_output_int32_2matmul_output_float_2cast_2"Cast*
to�
F
matmul_output_float_2
multiplier_2 mul_output_2 mul_bottom_2"Mul
1
mul_output_2
bias_2output_2
bias_add_2"Add
a
a_quantized
b_quantized_3
a_zp
b_zp_3matmul_output_int32_3MatMulInteger_3"MatMulInteger
4
a_scale
b_scale_3 multiplier_3 mul_right_3"Mul
G
matmul_output_int32_3matmul_output_float_3cast_3"Cast*
to�
B
matmul_output_float_3
multiplier_3output_3 mul_bottom_3"MulMatMulIntegerToFloat_fusion**Bb_quantized_1**�Bb_zp_1*
*�~B b_scale_1**Bb_quantized_3**�Bb_zp_3*
*�~B b_scale_3*
* ������Bbias_1**
*�x����������������Bbias_2Z
input



Z
b_quantized_2


Z
b_zp_2


Z
b_scale_2



b
output_1



b
output_2



b
output_3



B
Expand Down

0 comments on commit e0cbbbf

Please sign in to comment.