diff options
Diffstat (limited to 'operators/ew_binary/add')
32 files changed, 1426 insertions, 1266 deletions
diff --git a/operators/ew_binary/add/add_1_f16/test.json b/operators/ew_binary/add/add_1_f16/test.json index 78d037481..6d2a504e0 100644 --- a/operators/ew_binary/add/add_1_f16/test.json +++ b/operators/ew_binary/add/add_1_f16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 47 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 47 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 47 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 47 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_1x2x65533x1_i32/test.json b/operators/ew_binary/add/add_1x2x65533x1_i32/test.json index c5a44749f..398a3ad29 100644 --- a/operators/ew_binary/add/add_1x2x65533x1_i32/test.json +++ b/operators/ew_binary/add/add_1x2x65533x1_i32/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 65533, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 2, + 65533, + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 2, + 65533, + 1 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 2, - 65533, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1, - 2, - 65533, - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 1, - 2, - 65533, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_1x37x37_bf16/test.json b/operators/ew_binary/add/add_1x37x37_bf16/test.json index 9f6e7f195..0f9e34957 100644 --- a/operators/ew_binary/add/add_1x37x37_bf16/test.json +++ b/operators/ew_binary/add/add_1x37x37_bf16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 37, + 37 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 42, + 37, + 37 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 42, + 37, + 37 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 37, - 37 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 42, - 37, - 37 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 42, - 37, - 37 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_1x37x40_f32/test.json b/operators/ew_binary/add/add_1x37x40_f32/test.json index 1d2c6be9e..8df6d200a 100644 --- a/operators/ew_binary/add/add_1x37x40_f32/test.json +++ b/operators/ew_binary/add/add_1x37x40_f32/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 37, + 40 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 56, + 37, + 40 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 56, + 37, + 40 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 37, - 40 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 56, - 37, - 40 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 56, - 37, - 40 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_1x49_f32/test.json b/operators/ew_binary/add/add_1x49_f32/test.json index c62652e41..d91bf69a0 100644 --- a/operators/ew_binary/add/add_1x49_f32/test.json +++ b/operators/ew_binary/add/add_1x49_f32/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 49 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 20, + 49 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 20, + 49 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 49 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 20, - 49 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 20, - 49 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_1x65539x1x1x1_i32/test.json b/operators/ew_binary/add/add_1x65539x1x1x1_i32/test.json index 351bd713c..6cd907ea2 100644 --- a/operators/ew_binary/add/add_1x65539x1x1x1_i32/test.json +++ b/operators/ew_binary/add/add_1x65539x1x1x1_i32/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65539, + 1, + 1, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 65539, + 1, + 1, + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 65539, + 1, + 1, + 1 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65539, - 1, - 1, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1, - 65539, - 1, - 1, - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 1, - 65539, - 1, - 1, - 1 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_20_f32/test.json b/operators/ew_binary/add/add_20_f32/test.json index 424b2b235..85b5db10e 100644 --- a/operators/ew_binary/add/add_20_f32/test.json +++ b/operators/ew_binary/add/add_20_f32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 20 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 20 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_20_i32/test.json b/operators/ew_binary/add/add_20_i32/test.json index 544add9fc..8617df1fa 100644 --- a/operators/ew_binary/add/add_20_i32/test.json +++ b/operators/ew_binary/add/add_20_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 20 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 20 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 20 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_20x1x25_i32/test.json b/operators/ew_binary/add/add_20x1x25_i32/test.json index 137ea7f31..1948c0eac 100644 --- a/operators/ew_binary/add/add_20x1x25_i32/test.json +++ b/operators/ew_binary/add/add_20x1x25_i32/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 20, + 1, + 25 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 20, + 49, + 25 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 20, + 49, + 25 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 20, - 1, - 25 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 20, - 49, - 25 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 20, - 49, - 25 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_2x11x4x2x8_f32/test.json b/operators/ew_binary/add/add_2x11x4x2x8_f32/test.json index 55447c98b..c25a46aa0 100644 --- a/operators/ew_binary/add/add_2x11x4x2x8_f32/test.json +++ b/operators/ew_binary/add/add_2x11x4x2x8_f32/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1, + 8 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 2, - 11, - 4, - 1, - 8 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_2x11x4x2x8_i32/test.json b/operators/ew_binary/add/add_2x11x4x2x8_i32/test.json index be5e5400b..ec2f31e4e 100644 --- a/operators/ew_binary/add/add_2x11x4x2x8_i32/test.json +++ b/operators/ew_binary/add/add_2x11x4x2x8_i32/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1, + 8 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 2, - 11, - 4, - 1, - 8 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_2x12x10x1_f32/test.json b/operators/ew_binary/add/add_2x12x10x1_f32/test.json index ad0739b60..1cbaf0519 100644 --- a/operators/ew_binary/add/add_2x12x10x1_f32/test.json +++ b/operators/ew_binary/add/add_2x12x10x1_f32/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12, + 10, + 1 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 12, - 10, - 1 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_2x12x10x1_i32/test.json b/operators/ew_binary/add/add_2x12x10x1_i32/test.json index 726971e61..1ea673ed6 100644 --- a/operators/ew_binary/add/add_2x12x10x1_i32/test.json +++ b/operators/ew_binary/add/add_2x12x10x1_i32/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12, + 10, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 12, - 10, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_2x1x1x1_f16/test.json b/operators/ew_binary/add/add_2x1x1x1_f16/test.json index eefda3ae5..62a3781e9 100644 --- a/operators/ew_binary/add/add_2x1x1x1_f16/test.json +++ b/operators/ew_binary/add/add_2x1x1x1_f16/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 1, + 1, + 1 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 2, + 1, + 1, + 65532 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2, + 1, + 1, + 65532 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 1, - 1, - 1 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 2, - 1, - 1, - 65532 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 2, - 1, - 1, - 65532 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_36_bf16/test.json b/operators/ew_binary/add/add_36_bf16/test.json index 4a1509518..76dbf4a00 100644 --- a/operators/ew_binary/add/add_36_bf16/test.json +++ b/operators/ew_binary/add/add_36_bf16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 36 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 36 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 36 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 36 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_41x62_f16/test.json b/operators/ew_binary/add/add_41x62_f16/test.json index d33694651..d45702056 100644 --- a/operators/ew_binary/add/add_41x62_f16/test.json +++ b/operators/ew_binary/add/add_41x62_f16/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 41, + 62 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 41, + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 41, + 62 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 41, - 62 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 41, - 1 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 41, - 62 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_47x1_i32/test.json b/operators/ew_binary/add/add_47x1_i32/test.json index a96020cdc..bddbecf53 100644 --- a/operators/ew_binary/add/add_47x1_i32/test.json +++ b/operators/ew_binary/add/add_47x1_i32/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 47, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 47, + 37 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 47, + 37 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 47, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 47, - 37 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 47, - 37 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_50x53_bf16/test.json b/operators/ew_binary/add/add_50x53_bf16/test.json index 4fdc57a3b..bbcb4cdc8 100644 --- a/operators/ew_binary/add/add_50x53_bf16/test.json +++ b/operators/ew_binary/add/add_50x53_bf16/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 50, + 53 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 1, + 53 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 50, + 53 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 50, - 53 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 1, - 53 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 50, - 53 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_60x53x1_f16/test.json b/operators/ew_binary/add/add_60x53x1_f16/test.json index f3efbde54..97b4db8e3 100644 --- a/operators/ew_binary/add/add_60x53x1_f16/test.json +++ b/operators/ew_binary/add/add_60x53x1_f16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 60, + 53, + 1 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 60, + 53, + 46 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 60, + 53, + 46 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 60, - 53, - 1 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 60, - 53, - 46 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 60, - 53, - 46 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_65542x2x1x1x1_f16/test.json b/operators/ew_binary/add/add_65542x2x1x1x1_f16/test.json index 166d3a1f2..7e24d300a 100644 --- a/operators/ew_binary/add/add_65542x2x1x1x1_f16/test.json +++ b/operators/ew_binary/add/add_65542x2x1x1x1_f16/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 65542, + 2, + 1, + 1, + 1 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 65542, + 2, + 1, + 1, + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 65542, + 2, + 1, + 1, + 1 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 65542, - 2, - 1, - 1, - 1 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 65542, - 2, - 1, - 1, - 1 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 65542, - 2, - 1, - 1, - 1 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_11x2_bf16/test.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_11x2_bf16/test.json index 222481daf..8570f2469 100644 --- a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_11x2_bf16/test.json +++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_11x2_bf16/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 2 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 12, + 2 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 11, + 2 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 2 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 12, - 2 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 11, - 2 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_12_i32/test.json b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_12_i32/test.json index b440a9368..2df40413a 100644 --- a/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_12_i32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_DimensionMismatch_12_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 13 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 12 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 13 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 12 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json b/operators/ew_binary/add/add_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json index 0e286041c..49cc8c6c4 100644 --- a/operators/ew_binary/add/add_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json +++ b/operators/ew_binary/add/add_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json @@ -5,13 +5,56 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12, + 11, + 14, + 12 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 12, + 11, + 14 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 12, + 11, + 14, + 12 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,44 +63,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 12, - 11, - 14, - 12 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 12, - 11, - 14 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 12, - 11, - 14, - 12 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_RankMismatch_13x2_i32/test.json b/operators/ew_binary/add/add_ERRORIF_RankMismatch_13x2_i32/test.json index 67388530f..606995e4a 100644 --- a/operators/ew_binary/add/add_ERRORIF_RankMismatch_13x2_i32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_RankMismatch_13x2_i32/test.json @@ -5,13 +5,50 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 2 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 13 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 13, + 2 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,38 +57,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 13, - 2 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 13 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 13, - 2 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongInputList_11x5x12x9_i32/test.json b/operators/ew_binary/add/add_ERRORIF_WrongInputList_11x5x12x9_i32/test.json index fa500fc09..c5086b126 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongInputList_11x5x12x9_i32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongInputList_11x5x12x9_i32/test.json @@ -5,59 +5,64 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 5, + 12, + 9 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 11, + 1, + 12, + 9 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 11, + 5, + 12, + 9 + ], + type: "INT32" + } + ], inputs: [ - "input-0" + "input-0", + "input-1" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 5, - 12, - 9 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 11, - 1, - 12, - 9 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 11, - 5, - 12, - 9 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongInputList_2_f16/test.json b/operators/ew_binary/add/add_ERRORIF_WrongInputList_2_f16/test.json index e46fa6a8e..b697bca9b 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongInputList_2_f16/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongInputList_2_f16/test.json @@ -5,52 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2 + ], + type: "FP16" + } + ], inputs: [ "input-0", - "input-1", - "eiDummyInput" + "input-1" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 2 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongInputType_11x10x3_i16/test.json b/operators/ew_binary/add/add_ERRORIF_WrongInputType_11x10x3_i16/test.json index ef206b061..2c867cb2f 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongInputType_11x10x3_i16/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongInputType_11x10x3_i16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT16" + }, + { + name: "input-1", + shape: [ + 11, + 10, + 1 + ], + type: "INT16" + }, + { + name: "result-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT16" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 10, - 3 - ], - type: "INT16" - }, - { - name: "input-1", - shape: [ - 11, - 10, - 1 - ], - type: "INT16" - }, - { - name: "result-0", - shape: [ - 11, - 10, - 3 - ], - type: "INT16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongInputType_14x11x12_i4/test.json b/operators/ew_binary/add/add_ERRORIF_WrongInputType_14x11x12_i4/test.json index 3bb90c428..48bee0463 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongInputType_14x11x12_i4/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongInputType_14x11x12_i4/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 14, + 11, + 12 + ], + type: "INT4" + }, + { + name: "input-1", + shape: [ + 14, + 11, + 1 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 14, + 11, + 12 + ], + type: "INT4" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 14, - 11, - 12 - ], - type: "INT4" - }, - { - name: "input-1", - shape: [ - 14, - 11, - 1 - ], - type: "INT4" - }, - { - name: "result-0", - shape: [ - 14, - 11, - 12 - ], - type: "INT4" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json b/operators/ew_binary/add/add_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json index ba288d470..b18cb0d7a 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json @@ -5,61 +5,66 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0", + "eiDummyOutput" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 8, + 13, + 9 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 8, + 13, + 9 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 10, + 8, + 13, + 9 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" ], outputs: [ - "result-0", - "eiDummyOutput" + "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 10, - 8, - 13, - 9 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1, - 8, - 13, - 9 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 10, - 8, - 13, - 9 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongOutputList_11x12_f32/test.json b/operators/ew_binary/add/add_ERRORIF_WrongOutputList_11x12_f32/test.json index b04f1718f..4f5e71656 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongOutputList_11x12_f32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongOutputList_11x12_f32/test.json @@ -5,54 +5,59 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 12 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 1, + 12 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 11, + 12 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" ], outputs: [ - + "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 12 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 1, - 12 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 11, - 12 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongOutputType_12_i32/test.json b/operators/ew_binary/add/add_ERRORIF_WrongOutputType_12_i32/test.json index 893f25ceb..36c537c60 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongOutputType_12_i32/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongOutputType_12_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "FP32" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 12 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 12 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/add/add_ERRORIF_WrongOutputType_13x5x14_bf16/test.json b/operators/ew_binary/add/add_ERRORIF_WrongOutputType_13x5x14_bf16/test.json index d22f57b9a..0333870c7 100644 --- a/operators/ew_binary/add/add_ERRORIF_WrongOutputType_13x5x14_bf16/test.json +++ b/operators/ew_binary/add/add_ERRORIF_WrongOutputType_13x5x14_bf16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "ADD", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 5, + 14 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 1, + 5, + 14 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 13, + 5, + 14 + ], + type: "INT32" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 13, - 5, - 14 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 1, - 5, - 14 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 13, - 5, - 14 - ], - type: "INT32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] |