aboutsummaryrefslogtreecommitdiff
path: root/operators/type_conversion
diff options
context:
space:
mode:
authorJeremy Johnson <jeremy.johnson@arm.com>2023-01-16 15:17:52 +0000
committerJeremy Johnson <jeremy.johnson@arm.com>2023-01-16 16:40:57 +0000
commitb08fb3e856b7757403ff9aafc9487f9c0ad61fe7 (patch)
tree4b4737ff52e92c1c17922a972384930953a26a61 /operators/type_conversion
parent007a2c7c0743b002587cd5e7b4c6b6acbcaedff8 (diff)
downloadconformance_tests-b08fb3e856b7757403ff9aafc9487f9c0ad61fe7.tar.gz
Regen tests after control flow operator support
Includes removing 3 tests that are not needed anymore. Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com> Change-Id: I2c62d95a7b053e9016000d90125e00862f94200e
Diffstat (limited to 'operators/type_conversion')
-rw-r--r--operators/type_conversion/cast/cast_12x12x11x12_b_outi16/test.json69
-rw-r--r--operators/type_conversion/cast/cast_12x12x11x12_b_outi32/test.json69
-rw-r--r--operators/type_conversion/cast/cast_12x12x11x12_b_outi8/test.json69
-rw-r--r--operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outb/test.json73
-rw-r--r--operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi16/test.json73
-rw-r--r--operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi32/test.json73
-rw-r--r--operators/type_conversion/cast/cast_1x65538x1x2_i8_outb/test.json69
-rw-r--r--operators/type_conversion/cast/cast_1x65538x1x2_i8_outi16/test.json69
-rw-r--r--operators/type_conversion/cast/cast_1x65538x1x2_i8_outi32/test.json69
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outb/test.json57
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outi16/test.json57
-rw-r--r--operators/type_conversion/cast/cast_20_i8_outi32/test.json57
-rw-r--r--operators/type_conversion/cast/cast_20x49_i16_outb/test.json61
-rw-r--r--operators/type_conversion/cast/cast_20x49_i16_outi32/test.json61
-rw-r--r--operators/type_conversion/cast/cast_20x49_i16_outi8/test.json61
-rw-r--r--operators/type_conversion/cast/cast_25x20_i32_outb/test.json61
-rw-r--r--operators/type_conversion/cast/cast_25x20_i32_outi16/test.json61
-rw-r--r--operators/type_conversion/cast/cast_25x20_i32_outi8/test.json61
-rw-r--r--operators/type_conversion/cast/cast_2x12x10x7_i8_outb/test.json69
-rw-r--r--operators/type_conversion/cast/cast_2x12x10x7_i8_outi16/test.json69
-rw-r--r--operators/type_conversion/cast/cast_2x12x10x7_i8_outi32/test.json69
-rw-r--r--operators/type_conversion/cast/cast_33x24x60_b_outi16/test.json65
-rw-r--r--operators/type_conversion/cast/cast_33x24x60_b_outi32/test.json65
-rw-r--r--operators/type_conversion/cast/cast_33x24x60_b_outi8/test.json65
-rw-r--r--operators/type_conversion/cast/cast_36x57_i8_outb/test.json61
-rw-r--r--operators/type_conversion/cast/cast_36x57_i8_outi16/test.json61
-rw-r--r--operators/type_conversion/cast/cast_36x57_i8_outi32/test.json61
-rw-r--r--operators/type_conversion/cast/cast_37_b_outi16/test.json57
-rw-r--r--operators/type_conversion/cast/cast_37_b_outi32/test.json57
-rw-r--r--operators/type_conversion/cast/cast_37_b_outi8/test.json57
-rw-r--r--operators/type_conversion/cast/cast_41x62_b_outi16/test.json61
-rw-r--r--operators/type_conversion/cast/cast_41x62_b_outi32/test.json61
-rw-r--r--operators/type_conversion/cast/cast_41x62_b_outi8/test.json61
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outb/test.json57
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi16/test.json57
-rw-r--r--operators/type_conversion/cast/cast_47_i32_outi8/test.json57
-rw-r--r--operators/type_conversion/cast/cast_4x2x8x15_i32_outb/test.json69
-rw-r--r--operators/type_conversion/cast/cast_4x2x8x15_i32_outi16/test.json69
-rw-r--r--operators/type_conversion/cast/cast_4x2x8x15_i32_outi8/test.json69
-rw-r--r--operators/type_conversion/cast/cast_4x2x9x14x1_b_outi16/test.json73
-rw-r--r--operators/type_conversion/cast/cast_4x2x9x14x1_b_outi32/test.json73
-rw-r--r--operators/type_conversion/cast/cast_4x2x9x14x1_b_outi8/test.json73
-rw-r--r--operators/type_conversion/cast/cast_51x52x50_i8_outb/test.json65
-rw-r--r--operators/type_conversion/cast/cast_51x52x50_i8_outi16/test.json65
-rw-r--r--operators/type_conversion/cast/cast_51x52x50_i8_outi32/test.json65
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outb/test.json57
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi32/test.json57
-rw-r--r--operators/type_conversion/cast/cast_53_i16_outi8/test.json57
-rw-r--r--operators/type_conversion/cast/cast_53x40x22_i16_outb/test.json65
-rw-r--r--operators/type_conversion/cast/cast_53x40x22_i16_outi32/test.json65
-rw-r--r--operators/type_conversion/cast/cast_53x40x22_i16_outi8/test.json65
-rw-r--r--operators/type_conversion/cast/cast_56x37x40_i32_outb/test.json65
-rw-r--r--operators/type_conversion/cast/cast_56x37x40_i32_outi16/test.json65
-rw-r--r--operators/type_conversion/cast/cast_56x37x40_i32_outi8/test.json65
-rw-r--r--operators/type_conversion/cast/cast_6x3x14x12x10_i16_outb/test.json73
-rw-r--r--operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi32/test.json73
-rw-r--r--operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi8/test.json73
-rw-r--r--operators/type_conversion/cast/cast_7x13x2x11_i16_outb/test.json69
-rw-r--r--operators/type_conversion/cast/cast_7x13x2x11_i16_outi32/test.json69
-rw-r--r--operators/type_conversion/cast/cast_7x13x2x11_i16_outi8/test.json69
-rw-r--r--operators/type_conversion/cast/cast_7x13x9x7x7_i32_outb/test.json73
-rw-r--r--operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi16/test.json73
-rw-r--r--operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi8/test.json73
-rw-r--r--operators/type_conversion/cast/cast_8x2x13x7x8_i8_outb/test.json73
-rw-r--r--operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi16/test.json73
-rw-r--r--operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi32/test.json73
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json63
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongInputType_10x7_i4_outb/test.json61
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongOutputList_10x1x6x7_b_outi16/test.json71
-rw-r--r--operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_11x12x12x3_i16_outi48/test.json69
-rw-r--r--operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi16_sc1_dr1_pc1/test.json119
-rw-r--r--operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi32_sc0_dr0_pc1/test.json119
-rw-r--r--operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi8_sc0_dr0_pc0/test.json99
-rw-r--r--operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi16_sc0_dr0_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi8_sc1_dr0_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi16_sc1_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi32_sc0_dr0_pc1/test.json139
-rw-r--r--operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi8_sc0_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_12x12x3x6x8_u16_outi16_sc1_dr0_pc1/test.json127
-rw-r--r--operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi16_sc0_dr0_pc1/test.json115
-rw-r--r--operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi32_sc0_dr0_pc0/test.json99
-rw-r--r--operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi8_sc1_dr0_pc1/test.json115
-rw-r--r--operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu16_sc1_dr0_pc0/test.json99
-rw-r--r--operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu8_sc1_dr1_pc1/test.json115
-rw-r--r--operators/type_conversion/rescale/rescale_17_u8_outi16_sc0_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_17_u8_outi8_sc1_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_17x27_u8_outi16_sc0_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_19x17_i8_outi16_sc1_dr0_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_19x17_i8_outi8_sc1_dr1_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi16_sc1_dr0_pc1/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi32_sc1_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi8_sc1_dr1_pc1/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outu8_sc0_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi16_sc1_dr0_pc1/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi32_sc1_dr1_pc1/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi8_sc1_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outu8_sc0_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_21x18x30_i8_outi16_sc1_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_21x18x30_i8_outi32_sc1_dr1_pc1/test.json207
-rw-r--r--operators/type_conversion/rescale/rescale_21x18x30_i8_outi8_sc1_dr1_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_21x18x30_i8_outu8_sc0_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json167
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi16_sc1_dr1_pc1/test.json171
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_23_i32_outi8_sc0_dr0_pc1/test.json171
-rw-r--r--operators/type_conversion/rescale/rescale_23x19x17_i48_outi8_sc0_dr0_pc1/test.json155
-rw-r--r--operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json155
-rw-r--r--operators/type_conversion/rescale/rescale_24x30x17_u16_outi16_sc1_dr0_pc1/test.json155
-rw-r--r--operators/type_conversion/rescale/rescale_24x31_i16_outi16_sc0_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_24x31_i16_outi32_sc0_dr0_pc1/test.json207
-rw-r--r--operators/type_conversion/rescale/rescale_24x31_i16_outi8_sc1_dr0_pc1/test.json207
-rw-r--r--operators/type_conversion/rescale/rescale_24x31_i16_outu16_sc1_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json207
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json183
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json183
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outu16_sc1_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_26_i16_outu8_sc1_dr1_pc1/test.json183
-rw-r--r--operators/type_conversion/rescale/rescale_27x28_i32_outi16_sc1_dr1_pc1/test.json195
-rw-r--r--operators/type_conversion/rescale/rescale_27x28_i32_outi32_sc0_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_27x28_i32_outi8_sc0_dr0_pc1/test.json195
-rw-r--r--operators/type_conversion/rescale/rescale_27x28_i48_outi8_sc0_dr0_pc1/test.json195
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi32_sc1_dr1_pc1/test.json191
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json191
-rw-r--r--operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json191
-rw-r--r--operators/type_conversion/rescale/rescale_28x26x22_i16_outi16_sc0_dr0_pc1/test.json175
-rw-r--r--operators/type_conversion/rescale/rescale_28x26x22_i16_outi32_sc0_dr0_pc1/test.json175
-rw-r--r--operators/type_conversion/rescale/rescale_28x26x22_i16_outi8_sc1_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_28x26x22_i16_outu16_sc1_dr0_pc1/test.json175
-rw-r--r--operators/type_conversion/rescale/rescale_28x26x22_i16_outu8_sc1_dr1_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_29_u16_outi16_sc1_dr0_pc1/test.json195
-rw-r--r--operators/type_conversion/rescale/rescale_29x23x24_u8_outi16_sc0_dr0_pc1/test.json183
-rw-r--r--operators/type_conversion/rescale/rescale_29x23x24_u8_outi8_sc1_dr0_pc1/test.json183
-rw-r--r--operators/type_conversion/rescale/rescale_29x24x23_i32_outi16_sc1_dr1_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_29x24x23_i32_outi32_sc0_dr0_pc1/test.json179
-rw-r--r--operators/type_conversion/rescale/rescale_29x24x23_i32_outi8_sc0_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi16_sc0_dr0_pc1/test.json119
-rw-r--r--operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi8_sc1_dr0_pc1/test.json119
-rw-r--r--operators/type_conversion/rescale/rescale_2x15x7x14x11_i48_outi8_sc0_dr0_pc1/test.json139
-rw-r--r--operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi16_sc0_dr0_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi32_sc0_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi8_sc1_dr0_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu16_sc1_dr0_pc1/test.json151
-rw-r--r--operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu8_sc1_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi16_sc1_dr0_pc1/test.json135
-rw-r--r--operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi32_sc1_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi8_sc1_dr1_pc1/test.json135
-rw-r--r--operators/type_conversion/rescale/rescale_7x13x2x11_i8_outu8_sc0_dr0_pc1/test.json135
-rw-r--r--operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi16_sc1_dr0_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi32_sc1_dr1_pc0/test.json99
-rw-r--r--operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi8_sc1_dr1_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outu8_sc0_dr0_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_8x2x13x7_i48_outi8_sc0_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_8x6x3x14_u16_outi16_sc1_dr0_pc1/test.json147
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_InputZeroPointNotZero_10_i48_outi16_sc0_dr0_pc0/test.json83
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_OutputZeroPointNotZero_10x3x12_i16_outi16_sc0_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_ScaleNotTrue_10x6x15x2_i48_outi16_sc0_dr1_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_ScaleTrue_10x1x6x7_i48_outi16_sc1_dr0_pc0/test.json95
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outi16_sc0_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json91
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10_u16_outi16_sc0_dr0_pc0/test.json85
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json131
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_10_i8_outi16_sc0_dr0_pc0/test.json87
-rw-r--r--operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputType_10_i48_outu16_sc0_dr0_pc0/test.json83
168 files changed, 8927 insertions, 8087 deletions
diff --git a/operators/type_conversion/cast/cast_12x12x11x12_b_outi16/test.json b/operators/type_conversion/cast/cast_12x12x11x12_b_outi16/test.json
index 0bf329415..7ea7b2e87 100644
--- a/operators/type_conversion/cast/cast_12x12x11x12_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_12x12x11x12_b_outi16/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_12x12x11x12_b_outi32/test.json b/operators/type_conversion/cast/cast_12x12x11x12_b_outi32/test.json
index e63bea961..b55d98281 100644
--- a/operators/type_conversion/cast/cast_12x12x11x12_b_outi32/test.json
+++ b/operators/type_conversion/cast/cast_12x12x11x12_b_outi32/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_12x12x11x12_b_outi8/test.json b/operators/type_conversion/cast/cast_12x12x11x12_b_outi8/test.json
index 72e7272bb..63644454b 100644
--- a/operators/type_conversion/cast/cast_12x12x11x12_b_outi8/test.json
+++ b/operators/type_conversion/cast/cast_12x12x11x12_b_outi8/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outb/test.json b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outb/test.json
index f5470af6c..fe33aff16 100644
--- a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outb/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi16/test.json b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi16/test.json
index 2b83371c7..530f31f16 100644
--- a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi16/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi32/test.json b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi32/test.json
index 1d9b1b446..b27774ca1 100644
--- a/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_1x1x65535x1x1_i8_outi32/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 1,
+ 65535,
+ 1,
+ 1
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 1,
- 65535,
- 1,
- 1
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outb/test.json b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outb/test.json
index be1a9602d..171840339 100644
--- a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outb/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi16/test.json b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi16/test.json
index a18cb0742..5e7e694cd 100644
--- a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi16/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi32/test.json b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi32/test.json
index cbb0b898b..aef9a0685 100644
--- a/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_1x65538x1x2_i8_outi32/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65538,
+ 1,
+ 2
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65538,
- 1,
- 2
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20_i8_outb/test.json b/operators/type_conversion/cast/cast_20_i8_outb/test.json
index d7cd22738..147c0fa18 100644
--- a/operators/type_conversion/cast/cast_20_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_20_i8_outb/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 20
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20_i8_outi16/test.json b/operators/type_conversion/cast/cast_20_i8_outi16/test.json
index 0d2668818..163bb1860 100644
--- a/operators/type_conversion/cast/cast_20_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_20_i8_outi16/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 20
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20_i8_outi32/test.json b/operators/type_conversion/cast/cast_20_i8_outi32/test.json
index c398528c7..b4603abbe 100644
--- a/operators/type_conversion/cast/cast_20_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_20_i8_outi32/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 20
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20x49_i16_outb/test.json b/operators/type_conversion/cast/cast_20x49_i16_outb/test.json
index 11ddd4c11..feb29303f 100644
--- a/operators/type_conversion/cast/cast_20x49_i16_outb/test.json
+++ b/operators/type_conversion/cast/cast_20x49_i16_outb/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20,
- 49
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 20,
- 49
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20x49_i16_outi32/test.json b/operators/type_conversion/cast/cast_20x49_i16_outi32/test.json
index 9a9ecc339..a1e7123f8 100644
--- a/operators/type_conversion/cast/cast_20x49_i16_outi32/test.json
+++ b/operators/type_conversion/cast/cast_20x49_i16_outi32/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20,
- 49
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 20,
- 49
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_20x49_i16_outi8/test.json b/operators/type_conversion/cast/cast_20x49_i16_outi8/test.json
index b83087bb8..207e97df4 100644
--- a/operators/type_conversion/cast/cast_20x49_i16_outi8/test.json
+++ b/operators/type_conversion/cast/cast_20x49_i16_outi8/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 20,
+ 49
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 20,
- 49
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 20,
- 49
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_25x20_i32_outb/test.json b/operators/type_conversion/cast/cast_25x20_i32_outb/test.json
index bd33452ee..0cf629075 100644
--- a/operators/type_conversion/cast/cast_25x20_i32_outb/test.json
+++ b/operators/type_conversion/cast/cast_25x20_i32_outb/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 25,
- 20
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 25,
- 20
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_25x20_i32_outi16/test.json b/operators/type_conversion/cast/cast_25x20_i32_outi16/test.json
index edd092a8d..d8e077151 100644
--- a/operators/type_conversion/cast/cast_25x20_i32_outi16/test.json
+++ b/operators/type_conversion/cast/cast_25x20_i32_outi16/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 25,
- 20
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 25,
- 20
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_25x20_i32_outi8/test.json b/operators/type_conversion/cast/cast_25x20_i32_outi8/test.json
index 91d5601be..88310867d 100644
--- a/operators/type_conversion/cast/cast_25x20_i32_outi8/test.json
+++ b/operators/type_conversion/cast/cast_25x20_i32_outi8/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 25,
+ 20
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 25,
- 20
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 25,
- 20
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_2x12x10x7_i8_outb/test.json b/operators/type_conversion/cast/cast_2x12x10x7_i8_outb/test.json
index 4dec2ef0e..76a7c0e0d 100644
--- a/operators/type_conversion/cast/cast_2x12x10x7_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_2x12x10x7_i8_outb/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_2x12x10x7_i8_outi16/test.json b/operators/type_conversion/cast/cast_2x12x10x7_i8_outi16/test.json
index 87e871254..6dbf39c81 100644
--- a/operators/type_conversion/cast/cast_2x12x10x7_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_2x12x10x7_i8_outi16/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_2x12x10x7_i8_outi32/test.json b/operators/type_conversion/cast/cast_2x12x10x7_i8_outi32/test.json
index 8e6d1fad5..642b2163c 100644
--- a/operators/type_conversion/cast/cast_2x12x10x7_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_2x12x10x7_i8_outi32/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_33x24x60_b_outi16/test.json b/operators/type_conversion/cast/cast_33x24x60_b_outi16/test.json
index b30ab96e3..6679208a2 100644
--- a/operators/type_conversion/cast/cast_33x24x60_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_33x24x60_b_outi16/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_33x24x60_b_outi32/test.json b/operators/type_conversion/cast/cast_33x24x60_b_outi32/test.json
index 97d664f64..64c621da4 100644
--- a/operators/type_conversion/cast/cast_33x24x60_b_outi32/test.json
+++ b/operators/type_conversion/cast/cast_33x24x60_b_outi32/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_33x24x60_b_outi8/test.json b/operators/type_conversion/cast/cast_33x24x60_b_outi8/test.json
index 0098ebb92..5fce74c9b 100644
--- a/operators/type_conversion/cast/cast_33x24x60_b_outi8/test.json
+++ b/operators/type_conversion/cast/cast_33x24x60_b_outi8/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 33,
+ 24,
+ 60
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 33,
- 24,
- 60
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_36x57_i8_outb/test.json b/operators/type_conversion/cast/cast_36x57_i8_outb/test.json
index dc2eaa85e..367beb6b8 100644
--- a/operators/type_conversion/cast/cast_36x57_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_36x57_i8_outb/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 36,
- 57
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 36,
- 57
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_36x57_i8_outi16/test.json b/operators/type_conversion/cast/cast_36x57_i8_outi16/test.json
index 5c84c689f..7440f4de8 100644
--- a/operators/type_conversion/cast/cast_36x57_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_36x57_i8_outi16/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 36,
- 57
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 36,
- 57
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_36x57_i8_outi32/test.json b/operators/type_conversion/cast/cast_36x57_i8_outi32/test.json
index 58fd513d0..f50bdf9c6 100644
--- a/operators/type_conversion/cast/cast_36x57_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_36x57_i8_outi32/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 36,
+ 57
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 36,
- 57
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 36,
- 57
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_37_b_outi16/test.json b/operators/type_conversion/cast/cast_37_b_outi16/test.json
index 2f229d161..51245ad88 100644
--- a/operators/type_conversion/cast/cast_37_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_37_b_outi16/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 37
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 37
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 37
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 37
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_37_b_outi32/test.json b/operators/type_conversion/cast/cast_37_b_outi32/test.json
index e1a413db0..e5e485219 100644
--- a/operators/type_conversion/cast/cast_37_b_outi32/test.json
+++ b/operators/type_conversion/cast/cast_37_b_outi32/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 37
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 37
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 37
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 37
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_37_b_outi8/test.json b/operators/type_conversion/cast/cast_37_b_outi8/test.json
index 9c936e155..384456c05 100644
--- a/operators/type_conversion/cast/cast_37_b_outi8/test.json
+++ b/operators/type_conversion/cast/cast_37_b_outi8/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 37
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 37
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 37
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 37
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_41x62_b_outi16/test.json b/operators/type_conversion/cast/cast_41x62_b_outi16/test.json
index cca81bb2b..44ac3222e 100644
--- a/operators/type_conversion/cast/cast_41x62_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_41x62_b_outi16/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 41,
- 62
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 41,
- 62
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_41x62_b_outi32/test.json b/operators/type_conversion/cast/cast_41x62_b_outi32/test.json
index bdf4adc1c..3423d6e30 100644
--- a/operators/type_conversion/cast/cast_41x62_b_outi32/test.json
+++ b/operators/type_conversion/cast/cast_41x62_b_outi32/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 41,
- 62
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 41,
- 62
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_41x62_b_outi8/test.json b/operators/type_conversion/cast/cast_41x62_b_outi8/test.json
index 47385df1f..7afd03e00 100644
--- a/operators/type_conversion/cast/cast_41x62_b_outi8/test.json
+++ b/operators/type_conversion/cast/cast_41x62_b_outi8/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 41,
+ 62
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 41,
- 62
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 41,
- 62
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_47_i32_outb/test.json b/operators/type_conversion/cast/cast_47_i32_outb/test.json
index 25709b7a0..b7177f08a 100644
--- a/operators/type_conversion/cast/cast_47_i32_outb/test.json
+++ b/operators/type_conversion/cast/cast_47_i32_outb/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 47
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 47
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 47
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 47
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_47_i32_outi16/test.json b/operators/type_conversion/cast/cast_47_i32_outi16/test.json
index f49b00695..3f88249dd 100644
--- a/operators/type_conversion/cast/cast_47_i32_outi16/test.json
+++ b/operators/type_conversion/cast/cast_47_i32_outi16/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 47
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 47
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 47
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 47
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_47_i32_outi8/test.json b/operators/type_conversion/cast/cast_47_i32_outi8/test.json
index 2aa07b284..b42c738de 100644
--- a/operators/type_conversion/cast/cast_47_i32_outi8/test.json
+++ b/operators/type_conversion/cast/cast_47_i32_outi8/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 47
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 47
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 47
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 47
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x8x15_i32_outb/test.json b/operators/type_conversion/cast/cast_4x2x8x15_i32_outb/test.json
index 8b89aff88..26df3d1eb 100644
--- a/operators/type_conversion/cast/cast_4x2x8x15_i32_outb/test.json
+++ b/operators/type_conversion/cast/cast_4x2x8x15_i32_outb/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x8x15_i32_outi16/test.json b/operators/type_conversion/cast/cast_4x2x8x15_i32_outi16/test.json
index 68ea64ce3..a56704392 100644
--- a/operators/type_conversion/cast/cast_4x2x8x15_i32_outi16/test.json
+++ b/operators/type_conversion/cast/cast_4x2x8x15_i32_outi16/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x8x15_i32_outi8/test.json b/operators/type_conversion/cast/cast_4x2x8x15_i32_outi8/test.json
index 32ba139fe..24bf439fc 100644
--- a/operators/type_conversion/cast/cast_4x2x8x15_i32_outi8/test.json
+++ b/operators/type_conversion/cast/cast_4x2x8x15_i32_outi8/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi16/test.json b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi16/test.json
index d8da6d7eb..72f7e6a64 100644
--- a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi16/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi32/test.json b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi32/test.json
index f5773d003..2ce9507b1 100644
--- a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi32/test.json
+++ b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi32/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi8/test.json b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi8/test.json
index 1cb152e3c..a3454ac38 100644
--- a/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi8/test.json
+++ b/operators/type_conversion/cast/cast_4x2x9x14x1_b_outi8/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 9,
+ 14,
+ 1
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 9,
- 14,
- 1
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_51x52x50_i8_outb/test.json b/operators/type_conversion/cast/cast_51x52x50_i8_outb/test.json
index 89d5ee381..220fe618a 100644
--- a/operators/type_conversion/cast/cast_51x52x50_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_51x52x50_i8_outb/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_51x52x50_i8_outi16/test.json b/operators/type_conversion/cast/cast_51x52x50_i8_outi16/test.json
index 8c09b528a..ce2ebf10d 100644
--- a/operators/type_conversion/cast/cast_51x52x50_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_51x52x50_i8_outi16/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_51x52x50_i8_outi32/test.json b/operators/type_conversion/cast/cast_51x52x50_i8_outi32/test.json
index 26d5e1868..8f08d26a0 100644
--- a/operators/type_conversion/cast/cast_51x52x50_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_51x52x50_i8_outi32/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 51,
+ 52,
+ 50
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 51,
- 52,
- 50
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53_i16_outb/test.json b/operators/type_conversion/cast/cast_53_i16_outb/test.json
index 6f48e577e..501810472 100644
--- a/operators/type_conversion/cast/cast_53_i16_outb/test.json
+++ b/operators/type_conversion/cast/cast_53_i16_outb/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53_i16_outi32/test.json b/operators/type_conversion/cast/cast_53_i16_outi32/test.json
index 62180e61a..0c86d28db 100644
--- a/operators/type_conversion/cast/cast_53_i16_outi32/test.json
+++ b/operators/type_conversion/cast/cast_53_i16_outi32/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53_i16_outi8/test.json b/operators/type_conversion/cast/cast_53_i16_outi8/test.json
index ba82032b1..53e009657 100644
--- a/operators/type_conversion/cast/cast_53_i16_outi8/test.json
+++ b/operators/type_conversion/cast/cast_53_i16_outi8/test.json
@@ -5,13 +5,40 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,28 +46,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53x40x22_i16_outb/test.json b/operators/type_conversion/cast/cast_53x40x22_i16_outb/test.json
index 5f122a0c6..427ba39b9 100644
--- a/operators/type_conversion/cast/cast_53x40x22_i16_outb/test.json
+++ b/operators/type_conversion/cast/cast_53x40x22_i16_outb/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53x40x22_i16_outi32/test.json b/operators/type_conversion/cast/cast_53x40x22_i16_outi32/test.json
index c165318fb..5972518df 100644
--- a/operators/type_conversion/cast/cast_53x40x22_i16_outi32/test.json
+++ b/operators/type_conversion/cast/cast_53x40x22_i16_outi32/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_53x40x22_i16_outi8/test.json b/operators/type_conversion/cast/cast_53x40x22_i16_outi8/test.json
index 83b10415d..73d66dda5 100644
--- a/operators/type_conversion/cast/cast_53x40x22_i16_outi8/test.json
+++ b/operators/type_conversion/cast/cast_53x40x22_i16_outi8/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 53,
+ 40,
+ 22
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 53,
- 40,
- 22
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_56x37x40_i32_outb/test.json b/operators/type_conversion/cast/cast_56x37x40_i32_outb/test.json
index bef810501..327c2faaa 100644
--- a/operators/type_conversion/cast/cast_56x37x40_i32_outb/test.json
+++ b/operators/type_conversion/cast/cast_56x37x40_i32_outb/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_56x37x40_i32_outi16/test.json b/operators/type_conversion/cast/cast_56x37x40_i32_outi16/test.json
index 7bc42c8ff..f24523beb 100644
--- a/operators/type_conversion/cast/cast_56x37x40_i32_outi16/test.json
+++ b/operators/type_conversion/cast/cast_56x37x40_i32_outi16/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_56x37x40_i32_outi8/test.json b/operators/type_conversion/cast/cast_56x37x40_i32_outi8/test.json
index 31017eee1..d50d833c2 100644
--- a/operators/type_conversion/cast/cast_56x37x40_i32_outi8/test.json
+++ b/operators/type_conversion/cast/cast_56x37x40_i32_outi8/test.json
@@ -5,13 +5,44 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 56,
+ 37,
+ 40
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,32 +50,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 56,
- 37,
- 40
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outb/test.json b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outb/test.json
index 1c9683c06..0472dce0a 100644
--- a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outb/test.json
+++ b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outb/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi32/test.json b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi32/test.json
index d68247d6b..fa2869a18 100644
--- a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi32/test.json
+++ b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi32/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi8/test.json b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi8/test.json
index 87bc4a37a..747ec89bd 100644
--- a/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi8/test.json
+++ b/operators/type_conversion/cast/cast_6x3x14x12x10_i16_outi8/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 6,
+ 3,
+ 14,
+ 12,
+ 10
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 6,
- 3,
- 14,
- 12,
- 10
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x2x11_i16_outb/test.json b/operators/type_conversion/cast/cast_7x13x2x11_i16_outb/test.json
index 036495e63..192cbf0b0 100644
--- a/operators/type_conversion/cast/cast_7x13x2x11_i16_outb/test.json
+++ b/operators/type_conversion/cast/cast_7x13x2x11_i16_outb/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x2x11_i16_outi32/test.json b/operators/type_conversion/cast/cast_7x13x2x11_i16_outi32/test.json
index 250c2ce4d..2c1d27b5b 100644
--- a/operators/type_conversion/cast/cast_7x13x2x11_i16_outi32/test.json
+++ b/operators/type_conversion/cast/cast_7x13x2x11_i16_outi32/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x2x11_i16_outi8/test.json b/operators/type_conversion/cast/cast_7x13x2x11_i16_outi8/test.json
index c9d059982..6098ee6bd 100644
--- a/operators/type_conversion/cast/cast_7x13x2x11_i16_outi8/test.json
+++ b/operators/type_conversion/cast/cast_7x13x2x11_i16_outi8/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outb/test.json b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outb/test.json
index a2f6c0817..9f288230b 100644
--- a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outb/test.json
+++ b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outb/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi16/test.json b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi16/test.json
index 7ad43da2e..7691d0d83 100644
--- a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi16/test.json
+++ b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi16/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi8/test.json b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi8/test.json
index 91e374539..3df982bbd 100644
--- a/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi8/test.json
+++ b/operators/type_conversion/cast/cast_7x13x9x7x7_i32_outi8/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 9,
+ 7,
+ 7
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 9,
- 7,
- 7
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outb/test.json b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outb/test.json
index 1f61dc674..8337094c8 100644
--- a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outb/test.json
+++ b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outb/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi16/test.json b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi16/test.json
index 3746e2e75..d54147c12 100644
--- a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi16/test.json
+++ b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi16/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi32/test.json b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi32/test.json
index 3891f328d..412c8eb79 100644
--- a/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi32/test.json
+++ b/operators/type_conversion/cast/cast_8x2x13x7x8_i8_outi32/test.json
@@ -5,13 +5,48 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7,
+ 8
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,36 +54,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 8,
- 2,
- 13,
- 7,
- 8
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json
index 294f6de99..338f2308b 100644
--- a/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputList_12x3_b_outi16/test.json
@@ -5,44 +5,49 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
- inputs: [
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 3
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 3
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
],
outputs: [
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 3
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 3
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_10x7_i4_outb/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_10x7_i4_outb/test.json
index 8f47b7e8c..0c7427909 100644
--- a/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_10x7_i4_outb/test.json
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongInputType_10x7_i4_outb/test.json
@@ -5,13 +5,42 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 7
+ ],
+ type: "INT4"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 7
+ ],
+ type: "BOOL"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,30 +48,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 7
- ],
- type: "INT4"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 7
- ],
- type: "BOOL"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputList_10x1x6x7_b_outi16/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputList_10x1x6x7_b_outi16/test.json
index a354b9640..2f59d76c0 100644
--- a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputList_10x1x6x7_b_outi16/test.json
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputList_10x1x6x7_b_outi16/test.json
@@ -5,48 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 1,
+ 6,
+ 7
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 1,
+ 6,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
outputs: [
-
+ "result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 1,
- 6,
- 7
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 1,
- 6,
- 7
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_11x12x12x3_i16_outi48/test.json b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_11x12x12x3_i16_outi48/test.json
index 4e859ef40..30e6dc611 100644
--- a/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_11x12x12x3_i16_outi48/test.json
+++ b/operators/type_conversion/cast/cast_ERRORIF_WrongOutputType_11x12x12x3_i16_outi48/test.json
@@ -5,13 +5,46 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CAST",
- attribute_type: "NONE",
+ name: "main",
+ operators: [
+ {
+ op: "CAST",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 11,
+ 12,
+ 12,
+ 3
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 11,
+ 12,
+ 12,
+ 3
+ ],
+ type: "INT48"
+ }
+ ],
inputs: [
"input-0"
],
@@ -19,34 +52,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 11,
- 12,
- 12,
- 3
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 11,
- 12,
- 12,
- 3
- ],
- type: "INT48"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi16_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi16_sc1_dr1_pc1/test.json
index f2887ac88..ee654a03a 100644
--- a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi16_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi16_sc1_dr1_pc1/test.json
@@ -5,36 +5,71 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1959224576,
- 1282587520,
- 1764828416,
- 1369095552,
- 1855094272,
- 1538672000
- ],
- shift: [
- 48,
- 48,
- 50,
- 48,
- 48,
- 48
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1959224576,
+ 1282587520,
+ 1764828416,
+ 1369095552,
+ 1855094272,
+ 1538672000
+ ],
+ shift: [
+ 48,
+ 48,
+ 50,
+ 48,
+ 48,
+ 48
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -42,36 +77,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi32_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi32_sc0_dr0_pc1/test.json
index 280f27fe0..b57d0baf7 100644
--- a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi32_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi32_sc0_dr0_pc1/test.json
@@ -5,36 +5,71 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 32466,
- 16965,
- 22877,
- 27531,
- 20425,
- 30999
- ],
- shift: [
- 17,
- 18,
- 15,
- 16,
- 15,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 32466,
+ 16965,
+ 22877,
+ 27531,
+ 20425,
+ 30999
+ ],
+ shift: [
+ 17,
+ 18,
+ 15,
+ 16,
+ 15,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -42,36 +77,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi8_sc0_dr0_pc0/test.json
index 5a38fa4c1..9a41b39e4 100644
--- a/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_10x3x12x11x6_i32_outi8_sc0_dr0_pc0/test.json
@@ -5,26 +5,61 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -79,
- multiplier: [
- 32195
- ],
- shift: [
- 38
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -79,
+ multiplier: [
+ 32195
+ ],
+ shift: [
+ 38
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 3,
+ 12,
+ 11,
+ 6
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,36 +67,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 3,
- 12,
- 11,
- 6
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi16_sc0_dr0_pc1/test.json
index 03dbd4383..fffd49e93 100644
--- a/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi16_sc0_dr0_pc1/test.json
@@ -5,42 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 129,
- output_zp: 0,
- multiplier: [
- 23190,
- 28487,
- 23416,
- 18703,
- 17704,
- 24212,
- 27728,
- 19294,
- 26956
- ],
- shift: [
- 8,
- 8,
- 10,
- 9,
- 10,
- 8,
- 8,
- 8,
- 8
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 129,
+ output_zp: 0,
+ multiplier: [
+ 23190,
+ 28487,
+ 23416,
+ 18703,
+ 17704,
+ 24212,
+ 27728,
+ 19294,
+ 26956
+ ],
+ shift: [
+ 8,
+ 8,
+ 10,
+ 9,
+ 10,
+ 8,
+ 8,
+ 8,
+ 8
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 10,
+ 7,
+ 13,
+ 9
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 10,
+ 7,
+ 13,
+ 9
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -48,36 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 10,
- 7,
- 13,
- 9
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 10,
- 7,
- 13,
- 9
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi8_sc1_dr0_pc1/test.json
index 420e3d3d3..5d1c6eb19 100644
--- a/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_12x10x7x13x9_u8_outi8_sc1_dr0_pc1/test.json
@@ -5,42 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 112,
- output_zp: 76,
- multiplier: [
- 1386289024,
- 1813914112,
- 1628625408,
- 1807434368,
- 1358305152,
- 1395628032,
- 1521214336,
- 1384963584,
- 2087697536
- ],
- shift: [
- 31,
- 32,
- 31,
- 33,
- 32,
- 34,
- 31,
- 31,
- 31
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 112,
+ output_zp: 76,
+ multiplier: [
+ 1386289024,
+ 1813914112,
+ 1628625408,
+ 1807434368,
+ 1358305152,
+ 1395628032,
+ 1521214336,
+ 1384963584,
+ 2087697536
+ ],
+ shift: [
+ 31,
+ 32,
+ 31,
+ 33,
+ 32,
+ 34,
+ 31,
+ 31,
+ 31
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 10,
+ 7,
+ 13,
+ 9
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 10,
+ 7,
+ 13,
+ 9
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -48,36 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 10,
- 7,
- 13,
- 9
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 10,
- 7,
- 13,
- 9
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi16_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi16_sc1_dr1_pc0/test.json
index d6ab31efc..3df4e48a7 100644
--- a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi16_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi16_sc1_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1296448384
- ],
- shift: [
- 48
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1296448384
+ ],
+ shift: [
+ 48
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi32_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi32_sc0_dr0_pc1/test.json
index 31aa3a9fd..12006d5fe 100644
--- a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi32_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi32_sc0_dr0_pc1/test.json
@@ -5,48 +5,81 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 17340,
- 16578,
- 29578,
- 24960,
- 19760,
- 25938,
- 20491,
- 19806,
- 32130,
- 17259,
- 22815,
- 24776
- ],
- shift: [
- 19,
- 15,
- 15,
- 17,
- 15,
- 15,
- 16,
- 15,
- 15,
- 19,
- 15,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 17340,
+ 16578,
+ 29578,
+ 24960,
+ 19760,
+ 25938,
+ 20491,
+ 19806,
+ 32130,
+ 17259,
+ 22815,
+ 24776
+ ],
+ shift: [
+ 19,
+ 15,
+ 15,
+ 17,
+ 15,
+ 15,
+ 16,
+ 15,
+ 15,
+ 19,
+ 15,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -54,34 +87,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi8_sc0_dr0_pc0/test.json
index 4a385ddfd..4bbb83318 100644
--- a/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_12x12x11x12_i32_outi8_sc0_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 109,
- multiplier: [
- 18298
- ],
- shift: [
- 38
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 109,
+ multiplier: [
+ 18298
+ ],
+ shift: [
+ 38
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 11,
+ 12
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 11,
- 12
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_12x12x3x6x8_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_12x12x3x6x8_u16_outi16_sc1_dr0_pc1/test.json
index e2bed1ef9..f82c88b0c 100644
--- a/operators/type_conversion/rescale/rescale_12x12x3x6x8_u16_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_12x12x3x6x8_u16_outi16_sc1_dr0_pc1/test.json
@@ -5,40 +5,75 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1235732224,
- 1553337216,
- 1337305088,
- 1964792192,
- 1129578624,
- 1078242176,
- 2138570368,
- 1607979776
- ],
- shift: [
- 32,
- 34,
- 34,
- 33,
- 32,
- 32,
- 34,
- 34
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1235732224,
+ 1553337216,
+ 1337305088,
+ 1964792192,
+ 1129578624,
+ 1078242176,
+ 2138570368,
+ 1607979776
+ ],
+ shift: [
+ 32,
+ 34,
+ 34,
+ 33,
+ 32,
+ 32,
+ 34,
+ 34
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 12,
+ 3,
+ 6,
+ 8
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 12,
+ 3,
+ 6,
+ 8
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -46,36 +81,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 12,
- 3,
- 6,
- 8
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 12,
- 3,
- 6,
- 8
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi16_sc0_dr0_pc1/test.json
index eccbcf1ff..758eb03e9 100644
--- a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi16_sc0_dr0_pc1/test.json
@@ -5,34 +5,69 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 32447,
- 24705,
- 17166,
- 17054,
- 29341
- ],
- shift: [
- 18,
- 15,
- 19,
- 16,
- 19
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 32447,
+ 24705,
+ 17166,
+ 17054,
+ 29341
+ ],
+ shift: [
+ 18,
+ 15,
+ 19,
+ 16,
+ 19
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -40,36 +75,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi32_sc0_dr0_pc0/test.json
index 7ea52a0b7..06b433546 100644
--- a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi32_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi32_sc0_dr0_pc0/test.json
@@ -5,26 +5,61 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 8191
- ],
- shift: [
- 2
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 8191
+ ],
+ shift: [
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,36 +67,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi8_sc1_dr0_pc1/test.json
index f8c2970be..807080df8 100644
--- a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outi8_sc1_dr0_pc1/test.json
@@ -5,34 +5,69 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -93,
- multiplier: [
- 1307776512,
- 1188172928,
- 1550659072,
- 1815198976,
- 1532977664
- ],
- shift: [
- 38,
- 38,
- 39,
- 38,
- 39
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -93,
+ multiplier: [
+ 1307776512,
+ 1188172928,
+ 1550659072,
+ 1815198976,
+ 1532977664
+ ],
+ shift: [
+ 38,
+ 38,
+ 39,
+ 38,
+ 39
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -40,36 +75,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu16_sc1_dr0_pc0/test.json
index 6ce876e49..a7a0bfbcc 100644
--- a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu16_sc1_dr0_pc0/test.json
@@ -5,26 +5,61 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1848290176
- ],
- shift: [
- 30
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1848290176
+ ],
+ shift: [
+ 30
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,36 +67,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu8_sc1_dr1_pc1/test.json
index 5cbd1470c..2d1b93141 100644
--- a/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_14x1x13x13x5_i16_outu8_sc1_dr1_pc1/test.json
@@ -5,34 +5,69 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 152,
- multiplier: [
- 1825418880,
- 1742758528,
- 1619707904,
- 1983605120,
- 1510849408
- ],
- shift: [
- 39,
- 38,
- 41,
- 38,
- 43
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 152,
+ multiplier: [
+ 1825418880,
+ 1742758528,
+ 1619707904,
+ 1983605120,
+ 1510849408
+ ],
+ shift: [
+ 39,
+ 38,
+ 41,
+ 38,
+ 43
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 1,
+ 13,
+ 13,
+ 5
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -40,36 +75,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 1,
- 13,
- 13,
- 5
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_17_u8_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_17_u8_outi16_sc0_dr0_pc0/test.json
index feecb0351..34d2e34bf 100644
--- a/operators/type_conversion/rescale/rescale_17_u8_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_17_u8_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 123,
- output_zp: 0,
- multiplier: [
- 25649
- ],
- shift: [
- 8
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 123,
+ output_zp: 0,
+ multiplier: [
+ 25649
+ ],
+ shift: [
+ 8
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 17
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 17
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 17
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 17
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_17_u8_outi8_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_17_u8_outi8_sc1_dr0_pc0/test.json
index a0d0611f2..c684feaad 100644
--- a/operators/type_conversion/rescale/rescale_17_u8_outi8_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_17_u8_outi8_sc1_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 195,
- output_zp: 19,
- multiplier: [
- 1188802688
- ],
- shift: [
- 31
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 195,
+ output_zp: 19,
+ multiplier: [
+ 1188802688
+ ],
+ shift: [
+ 31
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 17
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 17
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 17
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 17
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_17x27_u8_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi16_sc0_dr0_pc0/test.json
index 5a8d091a6..5578c87d5 100644
--- a/operators/type_conversion/rescale/rescale_17x27_u8_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 5,
- output_zp: 0,
- multiplier: [
- 25660
- ],
- shift: [
- 10
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 5,
+ output_zp: 0,
+ multiplier: [
+ 25660
+ ],
+ shift: [
+ 10
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 17,
+ 27
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 17,
+ 27
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 17,
- 27
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 17,
- 27
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json
index df581b61d..a6a48208e 100644
--- a/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_17x27_u8_outi8_sc1_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 35,
- output_zp: 112,
- multiplier: [
- 1277242752
- ],
- shift: [
- 31
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 35,
+ output_zp: 112,
+ multiplier: [
+ 1277242752
+ ],
+ shift: [
+ 31
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 17,
+ 27
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 17,
+ 27
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 17,
- 27
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 17,
- 27
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi16_sc1_dr0_pc1/test.json
index 90871dda2..14a88db36 100644
--- a/operators/type_conversion/rescale/rescale_19x17_i8_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi16_sc1_dr0_pc1/test.json
@@ -5,58 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -27,
- output_zp: 0,
- multiplier: [
- 1439014784,
- 1368805504,
- 2063594880,
- 1840971776,
- 2090203264,
- 1434083584,
- 1303815040,
- 2036706560,
- 1080969472,
- 1829516032,
- 1232614912,
- 1779894016,
- 1743686528,
- 1333932544,
- 1682805248,
- 1408593920,
- 1977577344
- ],
- shift: [
- 25,
- 24,
- 24,
- 25,
- 24,
- 24,
- 24,
- 26,
- 27,
- 24,
- 24,
- 25,
- 24,
- 25,
- 24,
- 25,
- 24
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -27,
+ output_zp: 0,
+ multiplier: [
+ 1439014784,
+ 1368805504,
+ 2063594880,
+ 1840971776,
+ 2090203264,
+ 1434083584,
+ 1303815040,
+ 2036706560,
+ 1080969472,
+ 1829516032,
+ 1232614912,
+ 1779894016,
+ 1743686528,
+ 1333932544,
+ 1682805248,
+ 1408593920,
+ 1977577344
+ ],
+ shift: [
+ 25,
+ 24,
+ 24,
+ 25,
+ 24,
+ 24,
+ 24,
+ 26,
+ 27,
+ 24,
+ 24,
+ 25,
+ 24,
+ 25,
+ 24,
+ 25,
+ 24
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -64,30 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 19,
- 17
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 19,
- 17
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json
index d434b3b90..f1a08e65c 100644
--- a/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi32_sc1_dr1_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -37,
- output_zp: 0,
- multiplier: [
- 2119329152
- ],
- shift: [
- 10
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -37,
+ output_zp: 0,
+ multiplier: [
+ 2119329152
+ ],
+ shift: [
+ 10
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 19,
- 17
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 19,
- 17
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outi8_sc1_dr1_pc1/test.json
index b87478f43..9c095e90a 100644
--- a/operators/type_conversion/rescale/rescale_19x17_i8_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_19x17_i8_outi8_sc1_dr1_pc1/test.json
@@ -5,58 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -119,
- output_zp: -10,
- multiplier: [
- 1433411968,
- 1626317824,
- 1977500544,
- 1676139648,
- 1656328064,
- 1644710400,
- 1480598784,
- 1905391488,
- 1496870144,
- 1680531584,
- 1564826112,
- 1432951552,
- 2064876928,
- 1089857920,
- 1766615936,
- 1110386048,
- 1151389568
- ],
- shift: [
- 33,
- 33,
- 33,
- 31,
- 31,
- 32,
- 33,
- 34,
- 34,
- 32,
- 35,
- 32,
- 31,
- 31,
- 31,
- 33,
- 32
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -119,
+ output_zp: -10,
+ multiplier: [
+ 1433411968,
+ 1626317824,
+ 1977500544,
+ 1676139648,
+ 1656328064,
+ 1644710400,
+ 1480598784,
+ 1905391488,
+ 1496870144,
+ 1680531584,
+ 1564826112,
+ 1432951552,
+ 2064876928,
+ 1089857920,
+ 1766615936,
+ 1110386048,
+ 1151389568
+ ],
+ shift: [
+ 33,
+ 33,
+ 33,
+ 31,
+ 31,
+ 32,
+ 33,
+ 34,
+ 34,
+ 32,
+ 35,
+ 32,
+ 31,
+ 31,
+ 31,
+ 33,
+ 32
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -64,30 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 19,
- 17
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 19,
- 17
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json
index 52646b897..2b670a5df 100644
--- a/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_19x17_i8_outu8_sc0_dr0_pc1/test.json
@@ -5,58 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 69,
- output_zp: 212,
- multiplier: [
- 16398,
- 24738,
- 16835,
- 19580,
- 22250,
- 23480,
- 17158,
- 26011,
- 19677,
- 26464,
- 22986,
- 26873,
- 22804,
- 27706,
- 23623,
- 22805,
- 24000
- ],
- shift: [
- 18,
- 15,
- 15,
- 18,
- 15,
- 15,
- 15,
- 15,
- 16,
- 17,
- 16,
- 16,
- 15,
- 15,
- 15,
- 17,
- 16
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 69,
+ output_zp: 212,
+ multiplier: [
+ 16398,
+ 24738,
+ 16835,
+ 19580,
+ 22250,
+ 23480,
+ 17158,
+ 26011,
+ 19677,
+ 26464,
+ 22986,
+ 26873,
+ 22804,
+ 27706,
+ 23623,
+ 22805,
+ 24000
+ ],
+ shift: [
+ 18,
+ 15,
+ 15,
+ 18,
+ 15,
+ 15,
+ 15,
+ 15,
+ 16,
+ 17,
+ 16,
+ 16,
+ 15,
+ 15,
+ 15,
+ 17,
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 19,
+ 17
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -64,30 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 19,
- 17
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 19,
- 17
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi16_sc1_dr0_pc1/test.json
index 8e26d4c37..0080f06aa 100644
--- a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi16_sc1_dr0_pc1/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -50,
- output_zp: 0,
- multiplier: [
- 2072144128
- ],
- shift: [
- 25
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -50,
+ output_zp: 0,
+ multiplier: [
+ 2072144128
+ ],
+ shift: [
+ 25
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi32_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi32_sc1_dr1_pc0/test.json
index ea1093448..da53bd8bd 100644
--- a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi32_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi32_sc1_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 58,
- output_zp: 0,
- multiplier: [
- 1596073344
- ],
- shift: [
- 11
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 58,
+ output_zp: 0,
+ multiplier: [
+ 1596073344
+ ],
+ shift: [
+ 11
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi8_sc1_dr1_pc1/test.json
index af8db0c0d..704500dbc 100644
--- a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outi8_sc1_dr1_pc1/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -6,
- output_zp: -16,
- multiplier: [
- 1983691392
- ],
- shift: [
- 33
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -6,
+ output_zp: -16,
+ multiplier: [
+ 1983691392
+ ],
+ shift: [
+ 33
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outu8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outu8_sc0_dr0_pc0/test.json
index 9af664f87..05f3ea6b3 100644
--- a/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outu8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_1x2x65533x1_i8_outu8_sc0_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -105,
- output_zp: 58,
- multiplier: [
- 19163
- ],
- shift: [
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -105,
+ output_zp: 58,
+ multiplier: [
+ 19163
+ ],
+ shift: [
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 2,
+ 65533,
+ 1
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 2,
- 65533,
- 1
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi16_sc1_dr0_pc1/test.json
index 21546c3b8..1c3c45201 100644
--- a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi16_sc1_dr0_pc1/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 44,
- output_zp: 0,
- multiplier: [
- 1917280384
- ],
- shift: [
- 25
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 44,
+ output_zp: 0,
+ multiplier: [
+ 1917280384
+ ],
+ shift: [
+ 25
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi32_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi32_sc1_dr1_pc1/test.json
index 1952ec5b6..11854c149 100644
--- a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi32_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi32_sc1_dr1_pc1/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -78,
- output_zp: 0,
- multiplier: [
- 1227760512
- ],
- shift: [
- 10
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -78,
+ output_zp: 0,
+ multiplier: [
+ 1227760512
+ ],
+ shift: [
+ 10
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi8_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi8_sc1_dr1_pc0/test.json
index 33c4afa0d..0688f75cd 100644
--- a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi8_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outi8_sc1_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 60,
- multiplier: [
- 1508091520
- ],
- shift: [
- 33
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 60,
+ multiplier: [
+ 1508091520
+ ],
+ shift: [
+ 33
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outu8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outu8_sc0_dr0_pc0/test.json
index 446f2e0bf..305dd40f0 100644
--- a/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outu8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_1x65539x1x1_i8_outu8_sc0_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -119,
- output_zp: 200,
- multiplier: [
- 21841
- ],
- shift: [
- 18
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -119,
+ output_zp: 200,
+ multiplier: [
+ 21841
+ ],
+ shift: [
+ 18
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 1,
+ 65539,
+ 1,
+ 1
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 1,
- 65539,
- 1,
- 1
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi16_sc1_dr0_pc0/test.json
index e104065cb..827bbf9d1 100644
--- a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi16_sc1_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 106,
- output_zp: 0,
- multiplier: [
- 1743606912
- ],
- shift: [
- 24
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 106,
+ output_zp: 0,
+ multiplier: [
+ 1743606912
+ ],
+ shift: [
+ 24
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi32_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi32_sc1_dr1_pc1/test.json
index be1bcbd5d..5195d47b3 100644
--- a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi32_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi32_sc1_dr1_pc1/test.json
@@ -5,84 +5,115 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -48,
- output_zp: 0,
- multiplier: [
- 1644675072,
- 1958453632,
- 1635893632,
- 1181924224,
- 1824844672,
- 1435735168,
- 1973676544,
- 1623838208,
- 1234751232,
- 2072981888,
- 2002839040,
- 2047805568,
- 1085224960,
- 1505511424,
- 1871223040,
- 1794782848,
- 1237985920,
- 1504127872,
- 1145218048,
- 1424383488,
- 1665031552,
- 2016289664,
- 1718202624,
- 1215867264,
- 1292528640,
- 1453417856,
- 1609294976,
- 1429866112,
- 1637156608,
- 1841930624
- ],
- shift: [
- 9,
- 11,
- 8,
- 9,
- 8,
- 11,
- 12,
- 8,
- 8,
- 10,
- 8,
- 9,
- 9,
- 9,
- 8,
- 9,
- 8,
- 11,
- 9,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 8,
- 12,
- 8,
- 11
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -48,
+ output_zp: 0,
+ multiplier: [
+ 1644675072,
+ 1958453632,
+ 1635893632,
+ 1181924224,
+ 1824844672,
+ 1435735168,
+ 1973676544,
+ 1623838208,
+ 1234751232,
+ 2072981888,
+ 2002839040,
+ 2047805568,
+ 1085224960,
+ 1505511424,
+ 1871223040,
+ 1794782848,
+ 1237985920,
+ 1504127872,
+ 1145218048,
+ 1424383488,
+ 1665031552,
+ 2016289664,
+ 1718202624,
+ 1215867264,
+ 1292528640,
+ 1453417856,
+ 1609294976,
+ 1429866112,
+ 1637156608,
+ 1841930624
+ ],
+ shift: [
+ 9,
+ 11,
+ 8,
+ 9,
+ 8,
+ 11,
+ 12,
+ 8,
+ 8,
+ 10,
+ 8,
+ 9,
+ 9,
+ 9,
+ 8,
+ 9,
+ 8,
+ 11,
+ 9,
+ 8,
+ 8,
+ 8,
+ 8,
+ 8,
+ 8,
+ 8,
+ 8,
+ 12,
+ 8,
+ 11
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -90,32 +121,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi8_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi8_sc1_dr1_pc0/test.json
index 417d90b56..5e4e5078f 100644
--- a/operators/type_conversion/rescale/rescale_21x18x30_i8_outi8_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_21x18x30_i8_outi8_sc1_dr1_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -86,
- output_zp: 64,
- multiplier: [
- 1369570816
- ],
- shift: [
- 31
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -86,
+ output_zp: 64,
+ multiplier: [
+ 1369570816
+ ],
+ shift: [
+ 31
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_21x18x30_i8_outu8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_21x18x30_i8_outu8_sc0_dr0_pc0/test.json
index f4163bfa8..9201c6e35 100644
--- a/operators/type_conversion/rescale/rescale_21x18x30_i8_outu8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_21x18x30_i8_outu8_sc0_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 83,
- output_zp: 48,
- multiplier: [
- 23760
- ],
- shift: [
- 16
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 83,
+ output_zp: 48,
+ multiplier: [
+ 23760
+ ],
+ shift: [
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 21,
+ 18,
+ 30
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 21,
- 18,
- 30
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json
index 527eecf9f..a21897533 100644
--- a/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_22_i48_outi8_sc0_dr0_pc1/test.json
@@ -5,68 +5,95 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 16,
- multiplier: [
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384
- ],
- shift: [
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 16,
+ multiplier: [
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384
+ ],
+ shift: [
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 22
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 22
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -74,28 +101,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 22
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 22
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi16_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_23_i32_outi16_sc1_dr1_pc1/test.json
index b268d011c..53747051b 100644
--- a/operators/type_conversion/rescale/rescale_23_i32_outi16_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_23_i32_outi16_sc1_dr1_pc1/test.json
@@ -5,70 +5,97 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1900722688,
- 2101378048,
- 1216669440,
- 1311598208,
- 1476467840,
- 1627706880,
- 1230910848,
- 1200766208,
- 1894413184,
- 1779635840,
- 1120721152,
- 1201028864,
- 1101009408,
- 1319384064,
- 1605106560,
- 1398731264,
- 1866884352,
- 1893545344,
- 2132831360,
- 1960855808,
- 1692526208,
- 1740111488,
- 1622800384
- ],
- shift: [
- 47,
- 48,
- 49,
- 49,
- 47,
- 51,
- 48,
- 49,
- 48,
- 48,
- 47,
- 48,
- 51,
- 47,
- 48,
- 47,
- 50,
- 53,
- 49,
- 48,
- 48,
- 47,
- 48
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1900722688,
+ 2101378048,
+ 1216669440,
+ 1311598208,
+ 1476467840,
+ 1627706880,
+ 1230910848,
+ 1200766208,
+ 1894413184,
+ 1779635840,
+ 1120721152,
+ 1201028864,
+ 1101009408,
+ 1319384064,
+ 1605106560,
+ 1398731264,
+ 1866884352,
+ 1893545344,
+ 2132831360,
+ 1960855808,
+ 1692526208,
+ 1740111488,
+ 1622800384
+ ],
+ shift: [
+ 47,
+ 48,
+ 49,
+ 49,
+ 47,
+ 51,
+ 48,
+ 49,
+ 48,
+ 48,
+ 47,
+ 48,
+ 51,
+ 47,
+ 48,
+ 47,
+ 50,
+ 53,
+ 49,
+ 48,
+ 48,
+ 47,
+ 48
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -76,28 +103,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 23
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json
index 255cb55c6..7a581d194 100644
--- a/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_23_i32_outi32_sc0_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 18665
- ],
- shift: [
- 16
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 18665
+ ],
+ shift: [
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 23
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_23_i32_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_23_i32_outi8_sc0_dr0_pc1/test.json
index 31c6f51ff..52faec72c 100644
--- a/operators/type_conversion/rescale/rescale_23_i32_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_23_i32_outi8_sc0_dr0_pc1/test.json
@@ -5,70 +5,97 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -110,
- multiplier: [
- 17373,
- 27107,
- 19013,
- 25376,
- 20674,
- 28907,
- 20921,
- 17109,
- 23355,
- 29320,
- 22680,
- 30648,
- 22245,
- 26102,
- 17085,
- 20124,
- 32290,
- 27593,
- 21640,
- 22480,
- 28063,
- 20380,
- 25068
- ],
- shift: [
- 40,
- 38,
- 38,
- 38,
- 38,
- 38,
- 38,
- 38,
- 38,
- 39,
- 39,
- 39,
- 40,
- 38,
- 39,
- 40,
- 40,
- 38,
- 39,
- 38,
- 38,
- 41,
- 38
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -110,
+ multiplier: [
+ 17373,
+ 27107,
+ 19013,
+ 25376,
+ 20674,
+ 28907,
+ 20921,
+ 17109,
+ 23355,
+ 29320,
+ 22680,
+ 30648,
+ 22245,
+ 26102,
+ 17085,
+ 20124,
+ 32290,
+ 27593,
+ 21640,
+ 22480,
+ 28063,
+ 20380,
+ 25068
+ ],
+ shift: [
+ 40,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 39,
+ 39,
+ 39,
+ 40,
+ 38,
+ 39,
+ 40,
+ 40,
+ 38,
+ 39,
+ 38,
+ 38,
+ 41,
+ 38
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -76,28 +103,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 23
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_23x19x17_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_23x19x17_i48_outi8_sc0_dr0_pc1/test.json
index 9c2c43c71..78db9a02f 100644
--- a/operators/type_conversion/rescale/rescale_23x19x17_i48_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_23x19x17_i48_outi8_sc0_dr0_pc1/test.json
@@ -5,58 +5,89 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -93,
- multiplier: [
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384
- ],
- shift: [
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -93,
+ multiplier: [
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384
+ ],
+ shift: [
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 23,
+ 19,
+ 17
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 23,
+ 19,
+ 17
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -64,32 +95,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 23,
- 19,
- 17
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 23,
- 19,
- 17
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json
index 38779dcb4..f3d57a997 100644
--- a/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_24x18_u16_outi16_sc1_dr0_pc1/test.json
@@ -5,60 +5,89 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1686117632,
- 1183501568,
- 1927077760,
- 1917838720,
- 1139144448,
- 1232150144,
- 1959687808,
- 1480488576,
- 1465348608,
- 1397138304,
- 2142326784,
- 2069278208,
- 1441400704,
- 2114984448,
- 1812900736,
- 1190283264,
- 1962969088,
- 1428218624
- ],
- shift: [
- 32,
- 32,
- 32,
- 32,
- 32,
- 32,
- 33,
- 32,
- 32,
- 32,
- 36,
- 32,
- 33,
- 34,
- 34,
- 35,
- 33,
- 36
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1686117632,
+ 1183501568,
+ 1927077760,
+ 1917838720,
+ 1139144448,
+ 1232150144,
+ 1959687808,
+ 1480488576,
+ 1465348608,
+ 1397138304,
+ 2142326784,
+ 2069278208,
+ 1441400704,
+ 2114984448,
+ 1812900736,
+ 1190283264,
+ 1962969088,
+ 1428218624
+ ],
+ shift: [
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 32,
+ 33,
+ 32,
+ 32,
+ 32,
+ 36,
+ 32,
+ 33,
+ 34,
+ 34,
+ 35,
+ 33,
+ 36
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 18
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 18
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -66,30 +95,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 18
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 18
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x30x17_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x30x17_u16_outi16_sc1_dr0_pc1/test.json
index ca675020f..d7fc20442 100644
--- a/operators/type_conversion/rescale/rescale_24x30x17_u16_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_24x30x17_u16_outi16_sc1_dr0_pc1/test.json
@@ -5,58 +5,89 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1992657536,
- 1581035776,
- 1945799936,
- 1899976064,
- 1510887296,
- 1211759360,
- 1767635456,
- 1417834752,
- 1811250432,
- 1634845952,
- 1125180928,
- 1542401792,
- 1880056320,
- 2142618880,
- 2136784384,
- 2140610816,
- 1702192768
- ],
- shift: [
- 32,
- 33,
- 32,
- 32,
- 32,
- 33,
- 33,
- 34,
- 33,
- 33,
- 32,
- 38,
- 32,
- 38,
- 32,
- 32,
- 33
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1992657536,
+ 1581035776,
+ 1945799936,
+ 1899976064,
+ 1510887296,
+ 1211759360,
+ 1767635456,
+ 1417834752,
+ 1811250432,
+ 1634845952,
+ 1125180928,
+ 1542401792,
+ 1880056320,
+ 2142618880,
+ 2136784384,
+ 2140610816,
+ 1702192768
+ ],
+ shift: [
+ 32,
+ 33,
+ 32,
+ 32,
+ 32,
+ 33,
+ 33,
+ 34,
+ 33,
+ 33,
+ 32,
+ 38,
+ 32,
+ 38,
+ 32,
+ 32,
+ 33
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 30,
+ 17
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 30,
+ 17
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -64,32 +95,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 30,
- 17
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 30,
- 17
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outi16_sc0_dr0_pc0/test.json
index d1f192521..816949c1d 100644
--- a/operators/type_conversion/rescale/rescale_24x31_i16_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_24x31_i16_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 24956
- ],
- shift: [
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 24956
+ ],
+ shift: [
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outi32_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outi32_sc0_dr0_pc1/test.json
index d54771bbe..afb4f4a80 100644
--- a/operators/type_conversion/rescale/rescale_24x31_i16_outi32_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_24x31_i16_outi32_sc0_dr0_pc1/test.json
@@ -5,86 +5,115 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 8191,
- 31245,
- 8335,
- 6159,
- 5284,
- 14397,
- 8191,
- 28187,
- 8191,
- 8191,
- 8191,
- 8191,
- 9766,
- 8191,
- 6146,
- 15011,
- 8191,
- 19973,
- 4528,
- 8191,
- 7455,
- 9544,
- 22114,
- 4431,
- 8191,
- 8191,
- 8590,
- 8191,
- 8191,
- 8191,
- 8191
- ],
- shift: [
- 2,
- 3,
- 2,
- 2,
- 2,
- 2,
- 2,
- 4,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 8,
- 2,
- 2,
- 2,
- 2,
- 8,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 8191,
+ 31245,
+ 8335,
+ 6159,
+ 5284,
+ 14397,
+ 8191,
+ 28187,
+ 8191,
+ 8191,
+ 8191,
+ 8191,
+ 9766,
+ 8191,
+ 6146,
+ 15011,
+ 8191,
+ 19973,
+ 4528,
+ 8191,
+ 7455,
+ 9544,
+ 22114,
+ 4431,
+ 8191,
+ 8191,
+ 8590,
+ 8191,
+ 8191,
+ 8191,
+ 8191
+ ],
+ shift: [
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 4,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 8,
+ 2,
+ 2,
+ 2,
+ 2,
+ 8,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -92,30 +121,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 31
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outi8_sc1_dr0_pc1/test.json
index 4a6472bb0..3c56fad18 100644
--- a/operators/type_conversion/rescale/rescale_24x31_i16_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_24x31_i16_outi8_sc1_dr0_pc1/test.json
@@ -5,86 +5,115 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -53,
- multiplier: [
- 2036359424,
- 1087002624,
- 1900209280,
- 2132942592,
- 1776095360,
- 1356610688,
- 1589302784,
- 1148058496,
- 1752360960,
- 1221992320,
- 1155850624,
- 1709603840,
- 1253679232,
- 2069882624,
- 1878336768,
- 2146514432,
- 1210256128,
- 1141033344,
- 1455114240,
- 1318815232,
- 1792625536,
- 1583873408,
- 1264629248,
- 2109248256,
- 1397701248,
- 1565175680,
- 1769157376,
- 1087394816,
- 1916062208,
- 1273017472,
- 1948975616
- ],
- shift: [
- 38,
- 40,
- 38,
- 42,
- 39,
- 38,
- 39,
- 38,
- 40,
- 38,
- 40,
- 38,
- 38,
- 39,
- 42,
- 39,
- 38,
- 39,
- 38,
- 41,
- 40,
- 38,
- 40,
- 40,
- 38,
- 38,
- 42,
- 40,
- 39,
- 38,
- 39
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -53,
+ multiplier: [
+ 2036359424,
+ 1087002624,
+ 1900209280,
+ 2132942592,
+ 1776095360,
+ 1356610688,
+ 1589302784,
+ 1148058496,
+ 1752360960,
+ 1221992320,
+ 1155850624,
+ 1709603840,
+ 1253679232,
+ 2069882624,
+ 1878336768,
+ 2146514432,
+ 1210256128,
+ 1141033344,
+ 1455114240,
+ 1318815232,
+ 1792625536,
+ 1583873408,
+ 1264629248,
+ 2109248256,
+ 1397701248,
+ 1565175680,
+ 1769157376,
+ 1087394816,
+ 1916062208,
+ 1273017472,
+ 1948975616
+ ],
+ shift: [
+ 38,
+ 40,
+ 38,
+ 42,
+ 39,
+ 38,
+ 39,
+ 38,
+ 40,
+ 38,
+ 40,
+ 38,
+ 38,
+ 39,
+ 42,
+ 39,
+ 38,
+ 39,
+ 38,
+ 41,
+ 40,
+ 38,
+ 40,
+ 40,
+ 38,
+ 38,
+ 42,
+ 40,
+ 39,
+ 38,
+ 39
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -92,30 +121,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 31
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outu16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outu16_sc1_dr0_pc0/test.json
index 9a28735f5..8f1eb031f 100644
--- a/operators/type_conversion/rescale/rescale_24x31_i16_outu16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_24x31_i16_outu16_sc1_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 32768,
- multiplier: [
- 1765214080
- ],
- shift: [
- 30
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 32768,
+ multiplier: [
+ 1765214080
+ ],
+ shift: [
+ 30
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 31
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json
index 3f69c244b..9cb6d7993 100644
--- a/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_24x31_i16_outu8_sc1_dr1_pc1/test.json
@@ -5,86 +5,115 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 39,
- multiplier: [
- 1286045696,
- 1714056960,
- 1135324800,
- 1406797056,
- 1471500416,
- 1098648192,
- 1645916928,
- 2044121600,
- 1738707968,
- 1817982848,
- 1963192448,
- 1204059904,
- 1196176512,
- 1534918528,
- 1326809600,
- 1745543424,
- 1739776256,
- 1302902016,
- 1918965888,
- 1828214016,
- 1975735168,
- 1155238912,
- 2116175872,
- 1753184000,
- 1706836736,
- 1433614080,
- 2111551872,
- 1896499584,
- 1592443520,
- 1500685824,
- 1572148992
- ],
- shift: [
- 38,
- 38,
- 42,
- 40,
- 39,
- 39,
- 39,
- 38,
- 41,
- 39,
- 39,
- 39,
- 39,
- 38,
- 38,
- 38,
- 39,
- 38,
- 38,
- 38,
- 38,
- 39,
- 38,
- 38,
- 38,
- 38,
- 38,
- 39,
- 38,
- 38,
- 38
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 39,
+ multiplier: [
+ 1286045696,
+ 1714056960,
+ 1135324800,
+ 1406797056,
+ 1471500416,
+ 1098648192,
+ 1645916928,
+ 2044121600,
+ 1738707968,
+ 1817982848,
+ 1963192448,
+ 1204059904,
+ 1196176512,
+ 1534918528,
+ 1326809600,
+ 1745543424,
+ 1739776256,
+ 1302902016,
+ 1918965888,
+ 1828214016,
+ 1975735168,
+ 1155238912,
+ 2116175872,
+ 1753184000,
+ 1706836736,
+ 1433614080,
+ 2111551872,
+ 1896499584,
+ 1592443520,
+ 1500685824,
+ 1572148992
+ ],
+ shift: [
+ 38,
+ 38,
+ 42,
+ 40,
+ 39,
+ 39,
+ 39,
+ 38,
+ 41,
+ 39,
+ 39,
+ 39,
+ 39,
+ 38,
+ 38,
+ 38,
+ 39,
+ 38,
+ 38,
+ 38,
+ 38,
+ 39,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 39,
+ 38,
+ 38,
+ 38
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 24,
+ 31
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -92,30 +121,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 24,
- 31
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 24,
- 31
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json
index 9a7e20416..d09d09590 100644
--- a/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi16_sc0_dr0_pc1/test.json
@@ -5,76 +5,103 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 30266,
- 21586,
- 18167,
- 21018,
- 22658,
- 24811,
- 24809,
- 21766,
- 23695,
- 25500,
- 28120,
- 18438,
- 24758,
- 16870,
- 27092,
- 30392,
- 19575,
- 21920,
- 27565,
- 30983,
- 25722,
- 30274,
- 18972,
- 19373,
- 20207,
- 22296
- ],
- shift: [
- 16,
- 15,
- 15,
- 16,
- 16,
- 16,
- 18,
- 17,
- 15,
- 16,
- 17,
- 15,
- 15,
- 16,
- 15,
- 15,
- 15,
- 15,
- 19,
- 15,
- 16,
- 15,
- 15,
- 22,
- 19,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 30266,
+ 21586,
+ 18167,
+ 21018,
+ 22658,
+ 24811,
+ 24809,
+ 21766,
+ 23695,
+ 25500,
+ 28120,
+ 18438,
+ 24758,
+ 16870,
+ 27092,
+ 30392,
+ 19575,
+ 21920,
+ 27565,
+ 30983,
+ 25722,
+ 30274,
+ 18972,
+ 19373,
+ 20207,
+ 22296
+ ],
+ shift: [
+ 16,
+ 15,
+ 15,
+ 16,
+ 16,
+ 16,
+ 18,
+ 17,
+ 15,
+ 16,
+ 17,
+ 15,
+ 15,
+ 16,
+ 15,
+ 15,
+ 15,
+ 15,
+ 19,
+ 15,
+ 16,
+ 15,
+ 15,
+ 22,
+ 19,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -82,28 +109,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 26
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 26
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json
index e79631575..e465e51f1 100644
--- a/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi32_sc0_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 8191
- ],
- shift: [
- 2
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 8191
+ ],
+ shift: [
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 26
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 26
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json
index ee10ce0c4..09fe7a5ee 100644
--- a/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_26_i16_outi8_sc1_dr0_pc1/test.json
@@ -5,76 +5,103 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -106,
- multiplier: [
- 1514331264,
- 1506215040,
- 1767610112,
- 1711572864,
- 2126843008,
- 1178635776,
- 1403466112,
- 1927278592,
- 1687570688,
- 1879229056,
- 2095075712,
- 1874450304,
- 1651850240,
- 1896639744,
- 1408907904,
- 1241604480,
- 1577810176,
- 1216379136,
- 1183067520,
- 1779291008,
- 1525857536,
- 1826410112,
- 1699403008,
- 1291836928,
- 2088179072,
- 1117484544
- ],
- shift: [
- 40,
- 40,
- 38,
- 39,
- 38,
- 40,
- 38,
- 39,
- 39,
- 38,
- 38,
- 38,
- 40,
- 40,
- 38,
- 39,
- 38,
- 38,
- 38,
- 38,
- 38,
- 43,
- 42,
- 38,
- 39,
- 39
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -106,
+ multiplier: [
+ 1514331264,
+ 1506215040,
+ 1767610112,
+ 1711572864,
+ 2126843008,
+ 1178635776,
+ 1403466112,
+ 1927278592,
+ 1687570688,
+ 1879229056,
+ 2095075712,
+ 1874450304,
+ 1651850240,
+ 1896639744,
+ 1408907904,
+ 1241604480,
+ 1577810176,
+ 1216379136,
+ 1183067520,
+ 1779291008,
+ 1525857536,
+ 1826410112,
+ 1699403008,
+ 1291836928,
+ 2088179072,
+ 1117484544
+ ],
+ shift: [
+ 40,
+ 40,
+ 38,
+ 39,
+ 38,
+ 40,
+ 38,
+ 39,
+ 39,
+ 38,
+ 38,
+ 38,
+ 40,
+ 40,
+ 38,
+ 39,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 43,
+ 42,
+ 38,
+ 39,
+ 39
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -82,28 +109,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 26
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 26
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outu16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_26_i16_outu16_sc1_dr0_pc0/test.json
index fdd28250e..4026c28f8 100644
--- a/operators/type_conversion/rescale/rescale_26_i16_outu16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_26_i16_outu16_sc1_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1723829376
- ],
- shift: [
- 30
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1723829376
+ ],
+ shift: [
+ 30
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 26
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 26
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_26_i16_outu8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_26_i16_outu8_sc1_dr1_pc1/test.json
index 47771b606..ea58f2bc3 100644
--- a/operators/type_conversion/rescale/rescale_26_i16_outu8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_26_i16_outu8_sc1_dr1_pc1/test.json
@@ -5,76 +5,103 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 218,
- multiplier: [
- 1383905792,
- 1169408768,
- 2103779200,
- 1357644544,
- 1434996992,
- 2097704960,
- 1959947904,
- 1984005376,
- 1811022080,
- 2100678016,
- 1599857152,
- 1642110336,
- 1637649792,
- 2064194048,
- 1960447232,
- 2063527936,
- 1384738688,
- 1242620544,
- 1107278720,
- 1258342528,
- 1760860928,
- 1879963904,
- 1752466944,
- 1848059776,
- 1440527872,
- 2063517440
- ],
- shift: [
- 39,
- 38,
- 39,
- 38,
- 39,
- 40,
- 38,
- 38,
- 38,
- 38,
- 38,
- 38,
- 38,
- 39,
- 39,
- 40,
- 38,
- 39,
- 39,
- 38,
- 39,
- 40,
- 38,
- 38,
- 40,
- 45
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 218,
+ multiplier: [
+ 1383905792,
+ 1169408768,
+ 2103779200,
+ 1357644544,
+ 1434996992,
+ 2097704960,
+ 1959947904,
+ 1984005376,
+ 1811022080,
+ 2100678016,
+ 1599857152,
+ 1642110336,
+ 1637649792,
+ 2064194048,
+ 1960447232,
+ 2063527936,
+ 1384738688,
+ 1242620544,
+ 1107278720,
+ 1258342528,
+ 1760860928,
+ 1879963904,
+ 1752466944,
+ 1848059776,
+ 1440527872,
+ 2063517440
+ ],
+ shift: [
+ 39,
+ 38,
+ 39,
+ 38,
+ 39,
+ 40,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 38,
+ 39,
+ 39,
+ 40,
+ 38,
+ 39,
+ 39,
+ 38,
+ 39,
+ 40,
+ 38,
+ 38,
+ 40,
+ 45
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 26
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 26
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -82,28 +109,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 26
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 26
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_27x28_i32_outi16_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_27x28_i32_outi16_sc1_dr1_pc1/test.json
index a65f4da83..85524d3d8 100644
--- a/operators/type_conversion/rescale/rescale_27x28_i32_outi16_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_27x28_i32_outi16_sc1_dr1_pc1/test.json
@@ -5,80 +5,109 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1420413056,
- 1109689600,
- 1795322112,
- 1420685312,
- 1766302464,
- 1106187136,
- 1885837440,
- 1942725760,
- 1962186496,
- 1185987456,
- 1722003200,
- 1519389824,
- 1776011776,
- 1499460608,
- 1355228416,
- 1340428928,
- 1302266880,
- 2037896576,
- 1465694336,
- 1151343616,
- 1367012352,
- 1229123328,
- 1381338240,
- 2074454528,
- 1915893888,
- 1886528512,
- 1658407424,
- 1364068096
- ],
- shift: [
- 47,
- 49,
- 50,
- 47,
- 50,
- 49,
- 48,
- 48,
- 47,
- 48,
- 48,
- 47,
- 47,
- 48,
- 47,
- 47,
- 48,
- 50,
- 47,
- 48,
- 48,
- 47,
- 49,
- 49,
- 48,
- 47,
- 47,
- 48
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1420413056,
+ 1109689600,
+ 1795322112,
+ 1420685312,
+ 1766302464,
+ 1106187136,
+ 1885837440,
+ 1942725760,
+ 1962186496,
+ 1185987456,
+ 1722003200,
+ 1519389824,
+ 1776011776,
+ 1499460608,
+ 1355228416,
+ 1340428928,
+ 1302266880,
+ 2037896576,
+ 1465694336,
+ 1151343616,
+ 1367012352,
+ 1229123328,
+ 1381338240,
+ 2074454528,
+ 1915893888,
+ 1886528512,
+ 1658407424,
+ 1364068096
+ ],
+ shift: [
+ 47,
+ 49,
+ 50,
+ 47,
+ 50,
+ 49,
+ 48,
+ 48,
+ 47,
+ 48,
+ 48,
+ 47,
+ 47,
+ 48,
+ 47,
+ 47,
+ 48,
+ 50,
+ 47,
+ 48,
+ 48,
+ 47,
+ 49,
+ 49,
+ 48,
+ 47,
+ 47,
+ 48
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,30 +115,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 27,
- 28
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 27,
- 28
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_27x28_i32_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_27x28_i32_outi32_sc0_dr0_pc0/test.json
index 9a07ff0cf..76010d089 100644
--- a/operators/type_conversion/rescale/rescale_27x28_i32_outi32_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_27x28_i32_outi32_sc0_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 16869
- ],
- shift: [
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 16869
+ ],
+ shift: [
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 27,
- 28
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 27,
- 28
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_27x28_i32_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_27x28_i32_outi8_sc0_dr0_pc1/test.json
index bfd7ea022..264233712 100644
--- a/operators/type_conversion/rescale/rescale_27x28_i32_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_27x28_i32_outi8_sc0_dr0_pc1/test.json
@@ -5,80 +5,109 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 4,
- multiplier: [
- 27526,
- 31872,
- 22265,
- 21103,
- 28642,
- 22014,
- 20227,
- 21916,
- 30836,
- 31004,
- 28894,
- 29094,
- 31301,
- 20741,
- 28299,
- 28489,
- 16706,
- 17986,
- 31019,
- 25999,
- 30391,
- 27915,
- 31846,
- 30131,
- 31350,
- 21008,
- 24241,
- 24123
- ],
- shift: [
- 39,
- 39,
- 39,
- 39,
- 43,
- 38,
- 38,
- 38,
- 38,
- 39,
- 38,
- 39,
- 39,
- 38,
- 40,
- 40,
- 38,
- 41,
- 40,
- 38,
- 39,
- 43,
- 42,
- 38,
- 38,
- 38,
- 40,
- 39
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 4,
+ multiplier: [
+ 27526,
+ 31872,
+ 22265,
+ 21103,
+ 28642,
+ 22014,
+ 20227,
+ 21916,
+ 30836,
+ 31004,
+ 28894,
+ 29094,
+ 31301,
+ 20741,
+ 28299,
+ 28489,
+ 16706,
+ 17986,
+ 31019,
+ 25999,
+ 30391,
+ 27915,
+ 31846,
+ 30131,
+ 31350,
+ 21008,
+ 24241,
+ 24123
+ ],
+ shift: [
+ 39,
+ 39,
+ 39,
+ 39,
+ 43,
+ 38,
+ 38,
+ 38,
+ 38,
+ 39,
+ 38,
+ 39,
+ 39,
+ 38,
+ 40,
+ 40,
+ 38,
+ 41,
+ 40,
+ 38,
+ 39,
+ 43,
+ 42,
+ 38,
+ 38,
+ 38,
+ 40,
+ 39
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,30 +115,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 27,
- 28
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 27,
- 28
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_27x28_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_27x28_i48_outi8_sc0_dr0_pc1/test.json
index 7bd97d9ce..a933ac837 100644
--- a/operators/type_conversion/rescale/rescale_27x28_i48_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_27x28_i48_outi8_sc0_dr0_pc1/test.json
@@ -5,80 +5,109 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -1,
- multiplier: [
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384
- ],
- shift: [
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -1,
+ multiplier: [
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384
+ ],
+ shift: [
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 27,
+ 28
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,30 +115,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 27,
- 28
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 27,
- 28
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json
index 2db481f91..9303746cc 100644
--- a/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi16_sc1_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 45,
- output_zp: 0,
- multiplier: [
- 1468564992
- ],
- shift: [
- 25
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 45,
+ output_zp: 0,
+ multiplier: [
+ 1468564992
+ ],
+ shift: [
+ 25
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 28
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi32_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_28_i8_outi32_sc1_dr1_pc1/test.json
index fb6638a03..5bae008b3 100644
--- a/operators/type_conversion/rescale/rescale_28_i8_outi32_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi32_sc1_dr1_pc1/test.json
@@ -5,80 +5,107 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 67,
- output_zp: 0,
- multiplier: [
- 1882722048,
- 1936261120,
- 2114344960,
- 2109616384,
- 2046550016,
- 1233895040,
- 1183637504,
- 1307673728,
- 1187339904,
- 1666067456,
- 1816335104,
- 1324473856,
- 1164718720,
- 1420013440,
- 1087724032,
- 1377069824,
- 1829512576,
- 1254619776,
- 1578678400,
- 1271451520,
- 1594517888,
- 1738838784,
- 1632119680,
- 1658615424,
- 1776514688,
- 2021939328,
- 2072842880,
- 1924407552
- ],
- shift: [
- 8,
- 8,
- 8,
- 8,
- 8,
- 11,
- 10,
- 9,
- 8,
- 11,
- 8,
- 8,
- 8,
- 10,
- 9,
- 10,
- 8,
- 8,
- 8,
- 9,
- 9,
- 9,
- 8,
- 8,
- 10,
- 8,
- 11,
- 8
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 67,
+ output_zp: 0,
+ multiplier: [
+ 1882722048,
+ 1936261120,
+ 2114344960,
+ 2109616384,
+ 2046550016,
+ 1233895040,
+ 1183637504,
+ 1307673728,
+ 1187339904,
+ 1666067456,
+ 1816335104,
+ 1324473856,
+ 1164718720,
+ 1420013440,
+ 1087724032,
+ 1377069824,
+ 1829512576,
+ 1254619776,
+ 1578678400,
+ 1271451520,
+ 1594517888,
+ 1738838784,
+ 1632119680,
+ 1658615424,
+ 1776514688,
+ 2021939328,
+ 2072842880,
+ 1924407552
+ ],
+ shift: [
+ 8,
+ 8,
+ 8,
+ 8,
+ 8,
+ 11,
+ 10,
+ 9,
+ 8,
+ 11,
+ 8,
+ 8,
+ 8,
+ 10,
+ 9,
+ 10,
+ 8,
+ 8,
+ 8,
+ 9,
+ 9,
+ 9,
+ 8,
+ 8,
+ 10,
+ 8,
+ 11,
+ 8
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,28 +113,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 28
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json
index 228e8ee83..8671c2aac 100644
--- a/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28_i8_outi8_sc1_dr1_pc1/test.json
@@ -5,80 +5,107 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 87,
- output_zp: 87,
- multiplier: [
- 1369211264,
- 1394036992,
- 1439250560,
- 1638321792,
- 1996592256,
- 1574571008,
- 1158626304,
- 1453659520,
- 1813504512,
- 2072633088,
- 1650615168,
- 1829689344,
- 1084031488,
- 1953248512,
- 1260839040,
- 1825950208,
- 1462826368,
- 2142402560,
- 1141196544,
- 1803537792,
- 1711769984,
- 1969967616,
- 1354701952,
- 1524769920,
- 1455373824,
- 1645857280,
- 1705832576,
- 1991706112
- ],
- shift: [
- 31,
- 31,
- 31,
- 31,
- 35,
- 32,
- 31,
- 32,
- 31,
- 32,
- 31,
- 31,
- 31,
- 31,
- 31,
- 31,
- 32,
- 32,
- 31,
- 34,
- 32,
- 31,
- 31,
- 33,
- 32,
- 33,
- 36,
- 31
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 87,
+ output_zp: 87,
+ multiplier: [
+ 1369211264,
+ 1394036992,
+ 1439250560,
+ 1638321792,
+ 1996592256,
+ 1574571008,
+ 1158626304,
+ 1453659520,
+ 1813504512,
+ 2072633088,
+ 1650615168,
+ 1829689344,
+ 1084031488,
+ 1953248512,
+ 1260839040,
+ 1825950208,
+ 1462826368,
+ 2142402560,
+ 1141196544,
+ 1803537792,
+ 1711769984,
+ 1969967616,
+ 1354701952,
+ 1524769920,
+ 1455373824,
+ 1645857280,
+ 1705832576,
+ 1991706112
+ ],
+ shift: [
+ 31,
+ 31,
+ 31,
+ 31,
+ 35,
+ 32,
+ 31,
+ 32,
+ 31,
+ 32,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 32,
+ 32,
+ 31,
+ 34,
+ 32,
+ 31,
+ 31,
+ 33,
+ 32,
+ 33,
+ 36,
+ 31
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,28 +113,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 28
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json
index 8edb092cc..01ace2096 100644
--- a/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28_i8_outu8_sc0_dr0_pc1/test.json
@@ -5,80 +5,107 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 19,
- output_zp: 39,
- multiplier: [
- 30275,
- 22175,
- 29043,
- 22891,
- 27988,
- 19371,
- 22306,
- 25797,
- 20840,
- 16532,
- 28672,
- 27890,
- 22793,
- 23789,
- 31031,
- 32688,
- 18718,
- 27280,
- 25823,
- 24485,
- 17162,
- 26653,
- 27311,
- 27243,
- 30305,
- 25982,
- 27642,
- 29578
- ],
- shift: [
- 18,
- 20,
- 19,
- 17,
- 19,
- 15,
- 15,
- 16,
- 16,
- 15,
- 15,
- 15,
- 19,
- 17,
- 17,
- 17,
- 15,
- 16,
- 19,
- 16,
- 15,
- 18,
- 15,
- 19,
- 15,
- 18,
- 15,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 19,
+ output_zp: 39,
+ multiplier: [
+ 30275,
+ 22175,
+ 29043,
+ 22891,
+ 27988,
+ 19371,
+ 22306,
+ 25797,
+ 20840,
+ 16532,
+ 28672,
+ 27890,
+ 22793,
+ 23789,
+ 31031,
+ 32688,
+ 18718,
+ 27280,
+ 25823,
+ 24485,
+ 17162,
+ 26653,
+ 27311,
+ 27243,
+ 30305,
+ 25982,
+ 27642,
+ 29578
+ ],
+ shift: [
+ 18,
+ 20,
+ 19,
+ 17,
+ 19,
+ 15,
+ 15,
+ 16,
+ 16,
+ 15,
+ 15,
+ 15,
+ 19,
+ 17,
+ 17,
+ 17,
+ 15,
+ 16,
+ 19,
+ 16,
+ 15,
+ 18,
+ 15,
+ 19,
+ 15,
+ 18,
+ 15,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -86,28 +113,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 28
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi16_sc0_dr0_pc1/test.json
index ab5ce98ab..bf1158866 100644
--- a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi16_sc0_dr0_pc1/test.json
@@ -5,68 +5,99 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 23889,
- 27278,
- 23963,
- 19509,
- 16422,
- 31202,
- 29094,
- 23220,
- 31745,
- 31269,
- 29654,
- 16408,
- 21883,
- 19037,
- 25382,
- 21850,
- 16762,
- 28181,
- 21910,
- 22244,
- 17851,
- 20420
- ],
- shift: [
- 19,
- 16,
- 16,
- 15,
- 15,
- 15,
- 15,
- 15,
- 17,
- 15,
- 18,
- 16,
- 19,
- 15,
- 19,
- 22,
- 15,
- 17,
- 15,
- 16,
- 16,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 23889,
+ 27278,
+ 23963,
+ 19509,
+ 16422,
+ 31202,
+ 29094,
+ 23220,
+ 31745,
+ 31269,
+ 29654,
+ 16408,
+ 21883,
+ 19037,
+ 25382,
+ 21850,
+ 16762,
+ 28181,
+ 21910,
+ 22244,
+ 17851,
+ 20420
+ ],
+ shift: [
+ 19,
+ 16,
+ 16,
+ 15,
+ 15,
+ 15,
+ 15,
+ 15,
+ 17,
+ 15,
+ 18,
+ 16,
+ 19,
+ 15,
+ 19,
+ 22,
+ 15,
+ 17,
+ 15,
+ 16,
+ 16,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -74,32 +105,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi32_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi32_sc0_dr0_pc1/test.json
index 859289dab..65df36b26 100644
--- a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi32_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi32_sc0_dr0_pc1/test.json
@@ -5,68 +5,99 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 8191,
- 20673,
- 7675,
- 8191,
- 24342,
- 8002,
- 9264,
- 8191,
- 8191,
- 6640,
- 8191,
- 6257,
- 8191,
- 24809,
- 8191,
- 7686,
- 8191,
- 8191,
- 4146,
- 29394,
- 4652,
- 8191
- ],
- shift: [
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 2,
- 3,
- 2,
- 2,
- 2,
- 2,
- 2,
- 3,
- 2,
- 2
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 8191,
+ 20673,
+ 7675,
+ 8191,
+ 24342,
+ 8002,
+ 9264,
+ 8191,
+ 8191,
+ 6640,
+ 8191,
+ 6257,
+ 8191,
+ 24809,
+ 8191,
+ 7686,
+ 8191,
+ 8191,
+ 4146,
+ 29394,
+ 4652,
+ 8191
+ ],
+ shift: [
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2,
+ 2,
+ 2,
+ 2,
+ 3,
+ 2,
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -74,32 +105,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi8_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi8_sc1_dr0_pc0/test.json
index c763e5934..e44674de5 100644
--- a/operators/type_conversion/rescale/rescale_28x26x22_i16_outi8_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_28x26x22_i16_outi8_sc1_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 127,
- multiplier: [
- 1851602048
- ],
- shift: [
- 40
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 127,
+ multiplier: [
+ 1851602048
+ ],
+ shift: [
+ 40
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28x26x22_i16_outu16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_28x26x22_i16_outu16_sc1_dr0_pc1/test.json
index b22559443..0600aad8d 100644
--- a/operators/type_conversion/rescale/rescale_28x26x22_i16_outu16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_28x26x22_i16_outu16_sc1_dr0_pc1/test.json
@@ -5,68 +5,99 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 32768,
- multiplier: [
- 1456994176,
- 1406308096,
- 1754091264,
- 1739629696,
- 1683201920,
- 1600985984,
- 1673341440,
- 1923543168,
- 1989897984,
- 2116192640,
- 1076149504,
- 1098883840,
- 1858608640,
- 1236955136,
- 1739040768,
- 2076132480,
- 1763264128,
- 1826524672,
- 1089330048,
- 1172956416,
- 1229792256,
- 1645668736
- ],
- shift: [
- 30,
- 31,
- 30,
- 30,
- 30,
- 32,
- 34,
- 30,
- 30,
- 31,
- 30,
- 30,
- 35,
- 31,
- 30,
- 31,
- 31,
- 30,
- 30,
- 31,
- 30,
- 30
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 32768,
+ multiplier: [
+ 1456994176,
+ 1406308096,
+ 1754091264,
+ 1739629696,
+ 1683201920,
+ 1600985984,
+ 1673341440,
+ 1923543168,
+ 1989897984,
+ 2116192640,
+ 1076149504,
+ 1098883840,
+ 1858608640,
+ 1236955136,
+ 1739040768,
+ 2076132480,
+ 1763264128,
+ 1826524672,
+ 1089330048,
+ 1172956416,
+ 1229792256,
+ 1645668736
+ ],
+ shift: [
+ 30,
+ 31,
+ 30,
+ 30,
+ 30,
+ 32,
+ 34,
+ 30,
+ 30,
+ 31,
+ 30,
+ 30,
+ 35,
+ 31,
+ 30,
+ 31,
+ 31,
+ 30,
+ 30,
+ 31,
+ 30,
+ 30
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -74,32 +105,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_28x26x22_i16_outu8_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_28x26x22_i16_outu8_sc1_dr1_pc0/test.json
index 636027b5d..f6fd36cbb 100644
--- a/operators/type_conversion/rescale/rescale_28x26x22_i16_outu8_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_28x26x22_i16_outu8_sc1_dr1_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 33,
- multiplier: [
- 1102167936
- ],
- shift: [
- 40
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 33,
+ multiplier: [
+ 1102167936
+ ],
+ shift: [
+ 40
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 28,
+ 26,
+ 22
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 28,
- 26,
- 22
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_29_u16_outi16_sc1_dr0_pc1/test.json
index b4e07f824..fb992d7b4 100644
--- a/operators/type_conversion/rescale/rescale_29_u16_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_29_u16_outi16_sc1_dr0_pc1/test.json
@@ -5,82 +5,109 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 32768,
- output_zp: 0,
- multiplier: [
- 1553198976,
- 1271900800,
- 1904714752,
- 1576288512,
- 1776915712,
- 1274437632,
- 1269941504,
- 1454239232,
- 1916629248,
- 1855658496,
- 1553318528,
- 1116162432,
- 1581546112,
- 1731034624,
- 1228424192,
- 1658073728,
- 1603670144,
- 2027533056,
- 1084808704,
- 2017261696,
- 1816773504,
- 1453011200,
- 1751768192,
- 1646444800,
- 1658943616,
- 1723795840,
- 1903886336,
- 1307086848,
- 2059643136
- ],
- shift: [
- 35,
- 32,
- 34,
- 32,
- 32,
- 32,
- 32,
- 33,
- 33,
- 32,
- 32,
- 32,
- 33,
- 36,
- 34,
- 34,
- 33,
- 32,
- 32,
- 34,
- 35,
- 33,
- 32,
- 33,
- 32,
- 32,
- 35,
- 32,
- 32
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 32768,
+ output_zp: 0,
+ multiplier: [
+ 1553198976,
+ 1271900800,
+ 1904714752,
+ 1576288512,
+ 1776915712,
+ 1274437632,
+ 1269941504,
+ 1454239232,
+ 1916629248,
+ 1855658496,
+ 1553318528,
+ 1116162432,
+ 1581546112,
+ 1731034624,
+ 1228424192,
+ 1658073728,
+ 1603670144,
+ 2027533056,
+ 1084808704,
+ 2017261696,
+ 1816773504,
+ 1453011200,
+ 1751768192,
+ 1646444800,
+ 1658943616,
+ 1723795840,
+ 1903886336,
+ 1307086848,
+ 2059643136
+ ],
+ shift: [
+ 35,
+ 32,
+ 34,
+ 32,
+ 32,
+ 32,
+ 32,
+ 33,
+ 33,
+ 32,
+ 32,
+ 32,
+ 33,
+ 36,
+ 34,
+ 34,
+ 33,
+ 32,
+ 32,
+ 34,
+ 35,
+ 33,
+ 32,
+ 33,
+ 32,
+ 32,
+ 35,
+ 32,
+ 32
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -88,28 +115,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 29
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29x23x24_u8_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_29x23x24_u8_outi16_sc0_dr0_pc1/test.json
index 69fe76d7b..e16581023 100644
--- a/operators/type_conversion/rescale/rescale_29x23x24_u8_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_29x23x24_u8_outi16_sc0_dr0_pc1/test.json
@@ -5,72 +5,103 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 22,
- output_zp: 0,
- multiplier: [
- 16772,
- 30180,
- 27098,
- 28863,
- 16691,
- 17482,
- 19442,
- 29377,
- 29191,
- 21296,
- 28397,
- 25408,
- 23590,
- 20173,
- 19112,
- 19592,
- 18384,
- 21912,
- 29811,
- 29045,
- 29651,
- 22598,
- 24928,
- 29817
- ],
- shift: [
- 14,
- 8,
- 8,
- 8,
- 9,
- 9,
- 8,
- 8,
- 8,
- 9,
- 8,
- 9,
- 10,
- 10,
- 8,
- 11,
- 8,
- 13,
- 10,
- 8,
- 8,
- 8,
- 11,
- 8
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 22,
+ output_zp: 0,
+ multiplier: [
+ 16772,
+ 30180,
+ 27098,
+ 28863,
+ 16691,
+ 17482,
+ 19442,
+ 29377,
+ 29191,
+ 21296,
+ 28397,
+ 25408,
+ 23590,
+ 20173,
+ 19112,
+ 19592,
+ 18384,
+ 21912,
+ 29811,
+ 29045,
+ 29651,
+ 22598,
+ 24928,
+ 29817
+ ],
+ shift: [
+ 14,
+ 8,
+ 8,
+ 8,
+ 9,
+ 9,
+ 8,
+ 8,
+ 8,
+ 9,
+ 8,
+ 9,
+ 10,
+ 10,
+ 8,
+ 11,
+ 8,
+ 13,
+ 10,
+ 8,
+ 8,
+ 8,
+ 11,
+ 8
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29,
+ 23,
+ 24
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29,
+ 23,
+ 24
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -78,32 +109,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29,
- 23,
- 24
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 29,
- 23,
- 24
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29x23x24_u8_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_29x23x24_u8_outi8_sc1_dr0_pc1/test.json
index ac5ba2373..e3e0a9acd 100644
--- a/operators/type_conversion/rescale/rescale_29x23x24_u8_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_29x23x24_u8_outi8_sc1_dr0_pc1/test.json
@@ -5,72 +5,103 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 248,
- output_zp: -15,
- multiplier: [
- 1353291904,
- 1316509952,
- 1643004160,
- 1246641792,
- 1879412480,
- 1216660224,
- 1533459840,
- 1623131136,
- 1830285696,
- 1396201344,
- 1937112576,
- 1368677760,
- 1971268096,
- 1913736192,
- 1327216384,
- 1256241664,
- 1614834432,
- 1237404544,
- 1405619072,
- 1172384896,
- 1268597760,
- 1738920960,
- 1925578496,
- 1624410112
- ],
- shift: [
- 31,
- 32,
- 34,
- 33,
- 32,
- 32,
- 35,
- 32,
- 31,
- 34,
- 31,
- 33,
- 32,
- 31,
- 34,
- 31,
- 31,
- 31,
- 35,
- 31,
- 33,
- 32,
- 33,
- 31
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 248,
+ output_zp: -15,
+ multiplier: [
+ 1353291904,
+ 1316509952,
+ 1643004160,
+ 1246641792,
+ 1879412480,
+ 1216660224,
+ 1533459840,
+ 1623131136,
+ 1830285696,
+ 1396201344,
+ 1937112576,
+ 1368677760,
+ 1971268096,
+ 1913736192,
+ 1327216384,
+ 1256241664,
+ 1614834432,
+ 1237404544,
+ 1405619072,
+ 1172384896,
+ 1268597760,
+ 1738920960,
+ 1925578496,
+ 1624410112
+ ],
+ shift: [
+ 31,
+ 32,
+ 34,
+ 33,
+ 32,
+ 32,
+ 35,
+ 32,
+ 31,
+ 34,
+ 31,
+ 33,
+ 32,
+ 31,
+ 34,
+ 31,
+ 31,
+ 31,
+ 35,
+ 31,
+ 33,
+ 32,
+ 33,
+ 31
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29,
+ 23,
+ 24
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29,
+ 23,
+ 24
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -78,32 +109,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29,
- 23,
- 24
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 29,
- 23,
- 24
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi16_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi16_sc1_dr1_pc0/test.json
index b0a729be1..f6e78bc61 100644
--- a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi16_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi16_sc1_dr1_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 2106327936
- ],
- shift: [
- 47
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 2106327936
+ ],
+ shift: [
+ 47
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi32_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi32_sc0_dr0_pc1/test.json
index 22c199af3..9fa230656 100644
--- a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi32_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi32_sc0_dr0_pc1/test.json
@@ -5,70 +5,101 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 26225,
- 22995,
- 21330,
- 22459,
- 25969,
- 31830,
- 30589,
- 18257,
- 21974,
- 31815,
- 18268,
- 22265,
- 22030,
- 27755,
- 28732,
- 26721,
- 24698,
- 18949,
- 25219,
- 31362,
- 22359,
- 22432,
- 24528
- ],
- shift: [
- 15,
- 15,
- 15,
- 15,
- 17,
- 15,
- 15,
- 15,
- 15,
- 15,
- 17,
- 16,
- 15,
- 15,
- 15,
- 17,
- 16,
- 15,
- 16,
- 17,
- 15,
- 15,
- 17
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 26225,
+ 22995,
+ 21330,
+ 22459,
+ 25969,
+ 31830,
+ 30589,
+ 18257,
+ 21974,
+ 31815,
+ 18268,
+ 22265,
+ 22030,
+ 27755,
+ 28732,
+ 26721,
+ 24698,
+ 18949,
+ 25219,
+ 31362,
+ 22359,
+ 22432,
+ 24528
+ ],
+ shift: [
+ 15,
+ 15,
+ 15,
+ 15,
+ 17,
+ 15,
+ 15,
+ 15,
+ 15,
+ 15,
+ 17,
+ 16,
+ 15,
+ 15,
+ 15,
+ 17,
+ 16,
+ 15,
+ 16,
+ 17,
+ 15,
+ 15,
+ 17
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -76,32 +107,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi8_sc0_dr0_pc0/test.json
index 8b30a09ad..ff49baf94 100644
--- a/operators/type_conversion/rescale/rescale_29x24x23_i32_outi8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_29x24x23_i32_outi8_sc0_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 72,
- multiplier: [
- 22951
- ],
- shift: [
- 38
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 72,
+ multiplier: [
+ 22951
+ ],
+ shift: [
+ 38
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT32"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 29,
+ 24,
+ 23
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT32"
- },
- {
- name: "result-0",
- shape: [
- 29,
- 24,
- 23
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi16_sc0_dr0_pc1/test.json
index 6df956b3e..cf0270f29 100644
--- a/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi16_sc0_dr0_pc1/test.json
@@ -5,38 +5,71 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 90,
- output_zp: 0,
- multiplier: [
- 23688,
- 24947,
- 25175,
- 20217,
- 31901,
- 21475,
- 16547
- ],
- shift: [
- 8,
- 9,
- 9,
- 8,
- 12,
- 8,
- 8
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 90,
+ output_zp: 0,
+ multiplier: [
+ 23688,
+ 24947,
+ 25175,
+ 20217,
+ 31901,
+ 21475,
+ 16547
+ ],
+ shift: [
+ 8,
+ 9,
+ 9,
+ 8,
+ 12,
+ 8,
+ 8
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -44,34 +77,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi8_sc1_dr0_pc1/test.json
index 56013557c..e8f9367d4 100644
--- a/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_2x12x10x7_u8_outi8_sc1_dr0_pc1/test.json
@@ -5,38 +5,71 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 122,
- output_zp: 37,
- multiplier: [
- 1182445952,
- 1791909248,
- 1124044160,
- 1948191488,
- 1885471104,
- 1744847104,
- 1107884416
- ],
- shift: [
- 34,
- 31,
- 31,
- 31,
- 31,
- 31,
- 31
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 122,
+ output_zp: 37,
+ multiplier: [
+ 1182445952,
+ 1791909248,
+ 1124044160,
+ 1948191488,
+ 1885471104,
+ 1744847104,
+ 1107884416
+ ],
+ shift: [
+ 34,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "UINT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 12,
+ 10,
+ 7
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -44,34 +77,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "UINT8"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 12,
- 10,
- 7
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_2x15x7x14x11_i48_outi8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_2x15x7x14x11_i48_outi8_sc0_dr0_pc1/test.json
index 8086d4936..088ebbf8c 100644
--- a/operators/type_conversion/rescale/rescale_2x15x7x14x11_i48_outi8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_2x15x7x14x11_i48_outi8_sc0_dr0_pc1/test.json
@@ -5,46 +5,81 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 121,
- multiplier: [
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384,
- 16384
- ],
- shift: [
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45,
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 121,
+ multiplier: [
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384,
+ 16384
+ ],
+ shift: [
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45,
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 2,
+ 15,
+ 7,
+ 14,
+ 11
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 2,
+ 15,
+ 7,
+ 14,
+ 11
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -52,36 +87,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 2,
- 15,
- 7,
- 14,
- 11
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 2,
- 15,
- 7,
- 14,
- 11
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi16_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi16_sc0_dr0_pc1/test.json
index 081bc0341..357526899 100644
--- a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi16_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi16_sc0_dr0_pc1/test.json
@@ -5,54 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 31920,
- 16650,
- 25921,
- 25550,
- 16838,
- 21287,
- 21175,
- 27462,
- 17378,
- 26469,
- 30638,
- 27897,
- 24476,
- 21520,
- 26821
- ],
- shift: [
- 18,
- 17,
- 16,
- 16,
- 17,
- 18,
- 18,
- 19,
- 19,
- 15,
- 15,
- 16,
- 17,
- 16,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 31920,
+ 16650,
+ 25921,
+ 25550,
+ 16838,
+ 21287,
+ 21175,
+ 27462,
+ 17378,
+ 26469,
+ 30638,
+ 27897,
+ 24476,
+ 21520,
+ 26821
+ ],
+ shift: [
+ 18,
+ 17,
+ 16,
+ 16,
+ 17,
+ 18,
+ 18,
+ 19,
+ 19,
+ 15,
+ 15,
+ 16,
+ 17,
+ 16,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -60,34 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi32_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi32_sc0_dr0_pc0/test.json
index 689121401..a5f4687ae 100644
--- a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi32_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi32_sc0_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 7470
- ],
- shift: [
- 2
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 7470
+ ],
+ shift: [
+ 2
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi8_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi8_sc1_dr0_pc1/test.json
index b9e67888b..7a132fe75 100644
--- a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi8_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outi8_sc1_dr0_pc1/test.json
@@ -5,54 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -107,
- multiplier: [
- 2010611968,
- 1985224832,
- 1968665344,
- 1421257984,
- 1309071616,
- 1506242176,
- 1916347136,
- 1496721536,
- 1892381312,
- 1956589952,
- 2024560896,
- 1900481024,
- 1670175232,
- 1196010624,
- 1285805056
- ],
- shift: [
- 38,
- 38,
- 39,
- 38,
- 39,
- 38,
- 39,
- 39,
- 39,
- 39,
- 38,
- 38,
- 40,
- 39,
- 39
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -107,
+ multiplier: [
+ 2010611968,
+ 1985224832,
+ 1968665344,
+ 1421257984,
+ 1309071616,
+ 1506242176,
+ 1916347136,
+ 1496721536,
+ 1892381312,
+ 1956589952,
+ 2024560896,
+ 1900481024,
+ 1670175232,
+ 1196010624,
+ 1285805056
+ ],
+ shift: [
+ 38,
+ 38,
+ 39,
+ 38,
+ 39,
+ 38,
+ 39,
+ 39,
+ 39,
+ 39,
+ 38,
+ 38,
+ 40,
+ 39,
+ 39
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -60,34 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu16_sc1_dr0_pc1/test.json
index 5fb868d88..e851e8880 100644
--- a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu16_sc1_dr0_pc1/test.json
@@ -5,54 +5,87 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1620350592,
- 1109976960,
- 2106409600,
- 1324054016,
- 1313693696,
- 2108655488,
- 1139656704,
- 1724386048,
- 2071541632,
- 2145528832,
- 1711566592,
- 1912076672,
- 1728039168,
- 1168498432,
- 1685003904
- ],
- shift: [
- 31,
- 30,
- 32,
- 30,
- 31,
- 30,
- 31,
- 30,
- 30,
- 31,
- 32,
- 30,
- 31,
- 30,
- 34
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1620350592,
+ 1109976960,
+ 2106409600,
+ 1324054016,
+ 1313693696,
+ 2108655488,
+ 1139656704,
+ 1724386048,
+ 2071541632,
+ 2145528832,
+ 1711566592,
+ 1912076672,
+ 1728039168,
+ 1168498432,
+ 1685003904
+ ],
+ shift: [
+ 31,
+ 30,
+ 32,
+ 30,
+ 31,
+ 30,
+ 31,
+ 30,
+ 30,
+ 31,
+ 32,
+ 30,
+ 31,
+ 30,
+ 34
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -60,34 +93,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu8_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu8_sc1_dr1_pc0/test.json
index eb1b06e41..12b6773b8 100644
--- a/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu8_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_4x2x8x15_i16_outu8_sc1_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 210,
- multiplier: [
- 1105242880
- ],
- shift: [
- 39
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 210,
+ multiplier: [
+ 1105242880
+ ],
+ shift: [
+ 39
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 2,
+ 8,
+ 15
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 2,
- 8,
- 15
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi16_sc1_dr0_pc1/test.json
index edd4cbbed..433d63da8 100644
--- a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi16_sc1_dr0_pc1/test.json
@@ -5,46 +5,79 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 65,
- output_zp: 0,
- multiplier: [
- 1865166464,
- 1831974400,
- 1977699584,
- 1757097728,
- 1511700736,
- 1519738496,
- 1262701952,
- 1943006464,
- 1287952896,
- 1862496768,
- 1656428032
- ],
- shift: [
- 27,
- 24,
- 29,
- 24,
- 24,
- 27,
- 26,
- 25,
- 25,
- 24,
- 26
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 65,
+ output_zp: 0,
+ multiplier: [
+ 1865166464,
+ 1831974400,
+ 1977699584,
+ 1757097728,
+ 1511700736,
+ 1519738496,
+ 1262701952,
+ 1943006464,
+ 1287952896,
+ 1862496768,
+ 1656428032
+ ],
+ shift: [
+ 27,
+ 24,
+ 29,
+ 24,
+ 24,
+ 27,
+ 26,
+ 25,
+ 25,
+ 24,
+ 26
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -52,34 +85,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi32_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi32_sc1_dr1_pc0/test.json
index 41992a0b6..8484d3551 100644
--- a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi32_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi32_sc1_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -54,
- output_zp: 0,
- multiplier: [
- 1961966464
- ],
- shift: [
- 8
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -54,
+ output_zp: 0,
+ multiplier: [
+ 1961966464
+ ],
+ shift: [
+ 8
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi8_sc1_dr1_pc1/test.json
index 7a9d71817..4e8ab3a93 100644
--- a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outi8_sc1_dr1_pc1/test.json
@@ -5,46 +5,79 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 77,
- output_zp: 111,
- multiplier: [
- 1489886720,
- 1235735808,
- 1804787456,
- 1417741312,
- 1741921536,
- 1411233920,
- 1855979520,
- 1340047360,
- 1137628928,
- 1412808576,
- 1809388032
- ],
- shift: [
- 31,
- 31,
- 31,
- 31,
- 31,
- 31,
- 31,
- 31,
- 32,
- 35,
- 34
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 77,
+ output_zp: 111,
+ multiplier: [
+ 1489886720,
+ 1235735808,
+ 1804787456,
+ 1417741312,
+ 1741921536,
+ 1411233920,
+ 1855979520,
+ 1340047360,
+ 1137628928,
+ 1412808576,
+ 1809388032
+ ],
+ shift: [
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 31,
+ 32,
+ 35,
+ 34
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -52,34 +85,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outu8_sc0_dr0_pc1/test.json
index f39e1fd44..81b3e1f37 100644
--- a/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outu8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x13x2x11_i8_outu8_sc0_dr0_pc1/test.json
@@ -5,46 +5,79 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 32,
- output_zp: 70,
- multiplier: [
- 20071,
- 16993,
- 27595,
- 18913,
- 18184,
- 31150,
- 21796,
- 28797,
- 29125,
- 21791,
- 24948
- ],
- shift: [
- 15,
- 15,
- 15,
- 16,
- 15,
- 15,
- 16,
- 16,
- 15,
- 16,
- 16
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 32,
+ output_zp: 70,
+ multiplier: [
+ 20071,
+ 16993,
+ 27595,
+ 18913,
+ 18184,
+ 31150,
+ 21796,
+ 28797,
+ 29125,
+ 21791,
+ 24948
+ ],
+ shift: [
+ 15,
+ 15,
+ 15,
+ 16,
+ 15,
+ 15,
+ 16,
+ 16,
+ 15,
+ 16,
+ 16
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 13,
+ 2,
+ 11
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -52,34 +85,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 13,
- 2,
- 11
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi16_sc1_dr0_pc1/test.json
index 2b5db3433..518a62ed1 100644
--- a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi16_sc1_dr0_pc1/test.json
@@ -5,42 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 33,
- output_zp: 0,
- multiplier: [
- 1414518912,
- 2040108544,
- 2018089088,
- 1700846336,
- 1753768832,
- 1766027904,
- 1955521024,
- 1498114816,
- 1409023616
- ],
- shift: [
- 25,
- 25,
- 24,
- 27,
- 27,
- 24,
- 26,
- 28,
- 25
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 33,
+ output_zp: 0,
+ multiplier: [
+ 1414518912,
+ 2040108544,
+ 2018089088,
+ 1700846336,
+ 1753768832,
+ 1766027904,
+ 1955521024,
+ 1498114816,
+ 1409023616
+ ],
+ shift: [
+ 25,
+ 25,
+ 24,
+ 27,
+ 27,
+ 24,
+ 26,
+ 28,
+ 25
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -48,36 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi32_sc1_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi32_sc1_dr1_pc0/test.json
index dcdb25904..68a234afb 100644
--- a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi32_sc1_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi32_sc1_dr1_pc0/test.json
@@ -5,26 +5,61 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 38,
- output_zp: 0,
- multiplier: [
- 1774857344
- ],
- shift: [
- 9
- ],
- scale32: true,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 38,
+ output_zp: 0,
+ multiplier: [
+ 1774857344
+ ],
+ shift: [
+ 9
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT32"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,36 +67,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT32"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi8_sc1_dr1_pc1/test.json
index ff2794e57..021654fa2 100644
--- a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outi8_sc1_dr1_pc1/test.json
@@ -5,42 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: -100,
- output_zp: 92,
- multiplier: [
- 1971338496,
- 1161779072,
- 2002441984,
- 1399990272,
- 1640179456,
- 1510391808,
- 1942356992,
- 1989654912,
- 1583473152
- ],
- shift: [
- 33,
- 34,
- 31,
- 35,
- 34,
- 33,
- 31,
- 31,
- 32
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: -100,
+ output_zp: 92,
+ multiplier: [
+ 1971338496,
+ 1161779072,
+ 2002441984,
+ 1399990272,
+ 1640179456,
+ 1510391808,
+ 1942356992,
+ 1989654912,
+ 1583473152
+ ],
+ shift: [
+ 33,
+ 34,
+ 31,
+ 35,
+ 34,
+ 33,
+ 31,
+ 31,
+ 32
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -48,36 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outu8_sc0_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outu8_sc0_dr0_pc1/test.json
index f8cb4ce9d..59f95dfef 100644
--- a/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outu8_sc0_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_7x7x4x2x9_i8_outu8_sc0_dr0_pc1/test.json
@@ -5,42 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 86,
- output_zp: 56,
- multiplier: [
- 16712,
- 31758,
- 24696,
- 19322,
- 16717,
- 22372,
- 23136,
- 25482,
- 18833
- ],
- shift: [
- 18,
- 16,
- 16,
- 16,
- 18,
- 16,
- 17,
- 17,
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 86,
+ output_zp: 56,
+ multiplier: [
+ 16712,
+ 31758,
+ 24696,
+ 19322,
+ 16717,
+ 22372,
+ 23136,
+ 25482,
+ 18833
+ ],
+ shift: [
+ 18,
+ 16,
+ 16,
+ 16,
+ 18,
+ 16,
+ 17,
+ 17,
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 7,
+ 7,
+ 4,
+ 2,
+ 9
+ ],
+ type: "UINT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -48,36 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 7,
- 7,
- 4,
- 2,
- 9
- ],
- type: "UINT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_8x2x13x7_i48_outi8_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_8x2x13x7_i48_outi8_sc0_dr0_pc0/test.json
index 6d010d7ae..f6dbf61ad 100644
--- a/operators/type_conversion/rescale/rescale_8x2x13x7_i48_outi8_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_8x2x13x7_i48_outi8_sc0_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 5,
- multiplier: [
- 16384
- ],
- shift: [
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 5,
+ multiplier: [
+ 16384
+ ],
+ shift: [
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 8,
+ 2,
+ 13,
+ 7
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 8,
- 2,
- 13,
- 7
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 8,
- 2,
- 13,
- 7
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_8x6x3x14_u16_outi16_sc1_dr0_pc1/test.json b/operators/type_conversion/rescale/rescale_8x6x3x14_u16_outi16_sc1_dr0_pc1/test.json
index b78588915..ea6ce607a 100644
--- a/operators/type_conversion/rescale/rescale_8x6x3x14_u16_outi16_sc1_dr0_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_8x6x3x14_u16_outi16_sc1_dr0_pc1/test.json
@@ -5,52 +5,85 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1191077760,
- 1187401216,
- 1348588928,
- 1495496832,
- 1589956992,
- 1299593344,
- 1310843520,
- 1352294272,
- 2135380096,
- 1133873792,
- 1082405632,
- 2111265152,
- 1707012224,
- 1799104768
- ],
- shift: [
- 32,
- 34,
- 33,
- 33,
- 32,
- 35,
- 39,
- 32,
- 32,
- 34,
- 33,
- 32,
- 32,
- 32
- ],
- scale32: true,
- double_round: false,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1191077760,
+ 1187401216,
+ 1348588928,
+ 1495496832,
+ 1589956992,
+ 1299593344,
+ 1310843520,
+ 1352294272,
+ 2135380096,
+ 1133873792,
+ 1082405632,
+ 2111265152,
+ 1707012224,
+ 1799104768
+ ],
+ shift: [
+ 32,
+ 34,
+ 33,
+ 33,
+ 32,
+ 35,
+ 39,
+ 32,
+ 32,
+ 34,
+ 33,
+ 32,
+ 32,
+ 32
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 8,
+ 6,
+ 3,
+ 14
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 8,
+ 6,
+ 3,
+ 14
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -58,34 +91,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 8,
- 6,
- 3,
- 14
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 8,
- 6,
- 3,
- 14
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_InputZeroPointNotZero_10_i48_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_InputZeroPointNotZero_10_i48_outi16_sc0_dr0_pc0/test.json
index a20b5df3e..a60e97a83 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_InputZeroPointNotZero_10_i48_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_InputZeroPointNotZero_10_i48_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 17,
- output_zp: 0,
- multiplier: [
- 16384
- ],
- shift: [
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 17,
+ output_zp: 0,
+ multiplier: [
+ 16384
+ ],
+ shift: [
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 10
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_OutputZeroPointNotZero_10x3x12_i16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_OutputZeroPointNotZero_10x3x12_i16_outi16_sc0_dr0_pc0/test.json
index f450acdd7..6c193093a 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_OutputZeroPointNotZero_10x3x12_i16_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_OutputZeroPointNotZero_10x3x12_i16_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 3,
- multiplier: [
- 27075
- ],
- shift: [
- 14
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 3,
+ multiplier: [
+ 27075
+ ],
+ shift: [
+ 14
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 3,
+ 12
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 3,
+ 12
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 3,
- 12
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 3,
- 12
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_ScaleNotTrue_10x6x15x2_i48_outi16_sc0_dr1_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_ScaleNotTrue_10x6x15x2_i48_outi16_sc0_dr1_pc0/test.json
index d3ecc37e2..646bbc02b 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_ScaleNotTrue_10x6x15x2_i48_outi16_sc0_dr1_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_ScaleNotTrue_10x6x15x2_i48_outi16_sc0_dr1_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 16384
- ],
- shift: [
- 45
- ],
- scale32: false,
- double_round: true,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 16384
+ ],
+ shift: [
+ 45
+ ],
+ scale32: false,
+ double_round: true,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 6,
+ 15,
+ 2
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 6,
+ 15,
+ 2
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 6,
- 15,
- 2
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 6,
- 15,
- 2
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_ScaleTrue_10x1x6x7_i48_outi16_sc1_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_ScaleTrue_10x1x6x7_i48_outi16_sc1_dr0_pc0/test.json
index a705c1fd7..ff68aa0cb 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_ScaleTrue_10x1x6x7_i48_outi16_sc1_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_ScaleTrue_10x1x6x7_i48_outi16_sc1_dr0_pc0/test.json
@@ -5,26 +5,59 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 1073741824
- ],
- shift: [
- 61
- ],
- scale32: true,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 1073741824
+ ],
+ shift: [
+ 61
+ ],
+ scale32: true,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10,
+ 1,
+ 6,
+ 7
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10,
+ 1,
+ 6,
+ 7
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,34 +65,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10,
- 1,
- 6,
- 7
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 10,
- 1,
- 6,
- 7
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outi16_sc0_dr0_pc0/test.json
index 98b58e7c8..11693d6f9 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16InputZeroPointNotValid_12x6_u16_outi16_sc0_dr0_pc0/test.json
@@ -5,26 +5,55 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 103,
- output_zp: 0,
- multiplier: [
- 19393
- ],
- shift: [
- 17
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 103,
+ output_zp: 0,
+ multiplier: [
+ 19393
+ ],
+ shift: [
+ 17
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 12,
+ 6
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 12,
+ 6
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,30 +61,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 12,
- 6
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 12,
- 6
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json
index 2bf7e5e7c..6f8f3790f 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_U16OutputZeroPointNotValid_14x5x4_i16_outu16_sc0_dr0_pc0/test.json
@@ -5,26 +5,57 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 11,
- multiplier: [
- 19439
- ],
- shift: [
- 15
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 11,
+ multiplier: [
+ 19439
+ ],
+ shift: [
+ 15
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 14,
+ 5,
+ 4
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 14,
+ 5,
+ 4
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,32 +63,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 14,
- 5,
- 4
- ],
- type: "INT16"
- },
- {
- name: "result-0",
- shape: [
- 14,
- 5,
- 4
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10_u16_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10_u16_outi16_sc0_dr0_pc0/test.json
index 02e783c0e..034f66664 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10_u16_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputList_10_u16_outi16_sc0_dr0_pc0/test.json
@@ -5,55 +5,60 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 16667
- ],
- shift: [
- 17
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
- inputs: [
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 16667
+ ],
+ shift: [
+ 17
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "UINT16"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10
+ ],
+ type: "INT16"
+ }
+ ],
+ inputs: [
+ "input-0"
],
outputs: [
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10
- ],
- type: "UINT16"
- },
- {
- name: "result-0",
- shape: [
- 10
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json
index 4a4c3cb91..fecacde94 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongInputType_4x12_b_outi8_sc1_dr1_pc1/test.json
@@ -5,48 +5,77 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: -28,
- multiplier: [
- 1945640576,
- 1772247552,
- 2020305024,
- 1804184448,
- 2131625984,
- 2146599168,
- 1768162560,
- 1974912640,
- 2118920832,
- 1971165056,
- 1472555392,
- 1848440832
- ],
- shift: [
- 23,
- 25,
- 23,
- 24,
- 27,
- 25,
- 25,
- 23,
- 26,
- 26,
- 23,
- 23
- ],
- scale32: true,
- double_round: true,
- per_channel: true
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: -28,
+ multiplier: [
+ 1945640576,
+ 1772247552,
+ 2020305024,
+ 1804184448,
+ 2131625984,
+ 2146599168,
+ 1768162560,
+ 1974912640,
+ 2118920832,
+ 1971165056,
+ 1472555392,
+ 1848440832
+ ],
+ shift: [
+ 23,
+ 25,
+ 23,
+ 24,
+ 27,
+ 25,
+ 25,
+ 23,
+ 26,
+ 26,
+ 23,
+ 23
+ ],
+ scale32: true,
+ double_round: true,
+ per_channel: true
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 4,
+ 12
+ ],
+ type: "BOOL"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 4,
+ 12
+ ],
+ type: "INT8"
+ }
+ ],
inputs: [
"input-0"
],
@@ -54,30 +83,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 4,
- 12
- ],
- type: "BOOL"
- },
- {
- name: "result-0",
- shape: [
- 4,
- 12
- ],
- type: "INT8"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_10_i8_outi16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_10_i8_outi16_sc0_dr0_pc0/test.json
index e71ca61cb..aad3c65bb 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_10_i8_outi16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputList_10_i8_outi16_sc0_dr0_pc0/test.json
@@ -5,56 +5,61 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 2,
- output_zp: 0,
- multiplier: [
- 20563
- ],
- shift: [
- 9
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 2,
+ output_zp: 0,
+ multiplier: [
+ 20563
+ ],
+ shift: [
+ 9
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0",
+ "eiDummyOutput"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "INT8"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10
+ ],
+ type: "INT16"
+ }
+ ],
inputs: [
"input-0"
],
outputs: [
- "result-0",
- "eiDummyOutput"
+ "result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10
- ],
- type: "INT8"
- },
- {
- name: "result-0",
- shape: [
- 10
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]
diff --git a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputType_10_i48_outu16_sc0_dr0_pc0/test.json b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputType_10_i48_outu16_sc0_dr0_pc0/test.json
index dd172ecc4..2ce9239f2 100644
--- a/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputType_10_i48_outu16_sc0_dr0_pc0/test.json
+++ b/operators/type_conversion/rescale/rescale_ERRORIF_WrongOutputType_10_i48_outu16_sc0_dr0_pc0/test.json
@@ -5,26 +5,53 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "RESCALE",
- attribute_type: "RescaleAttribute",
- attribute: {
- input_zp: 0,
- output_zp: 0,
- multiplier: [
- 16384
- ],
- shift: [
- 45
- ],
- scale32: false,
- double_round: false,
- per_channel: false
- },
+ name: "main",
+ operators: [
+ {
+ op: "RESCALE",
+ attribute_type: "RescaleAttribute",
+ attribute: {
+ input_zp: 0,
+ output_zp: 0,
+ multiplier: [
+ 16384
+ ],
+ shift: [
+ 45
+ ],
+ scale32: false,
+ double_round: false,
+ per_channel: false
+ },
+ inputs: [
+ "input-0"
+ ],
+ outputs: [
+ "result-0"
+ ]
+ }
+ ],
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 10
+ ],
+ type: "INT48"
+ },
+ {
+ name: "result-0",
+ shape: [
+ 10
+ ],
+ type: "UINT16"
+ }
+ ],
inputs: [
"input-0"
],
@@ -32,28 +59,6 @@
"result-0"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 10
- ],
- type: "INT48"
- },
- {
- name: "result-0",
- shape: [
- 10
- ],
- type: "UINT16"
- }
- ],
- inputs: [
- "input-0"
- ],
- outputs: [
- "result-0"
]
}
]