diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-16 15:17:52 +0000 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2023-01-16 16:40:57 +0000 |
commit | b08fb3e856b7757403ff9aafc9487f9c0ad61fe7 (patch) | |
tree | 4b4737ff52e92c1c17922a972384930953a26a61 /operators/activation/tanh | |
parent | 007a2c7c0743b002587cd5e7b4c6b6acbcaedff8 (diff) | |
download | conformance_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/activation/tanh')
20 files changed, 694 insertions, 594 deletions
diff --git a/operators/activation/tanh/tanh_10x20x2x17_f16/test.json b/operators/activation/tanh/tanh_10x20x2x17_f16/test.json index 559589c4e..896c3f8aa 100644 --- a/operators/activation/tanh/tanh_10x20x2x17_f16/test.json +++ b/operators/activation/tanh/tanh_10x20x2x17_f16/test.json @@ -5,13 +5,46 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 20, + 2, + 17 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 10, + 20, + 2, + 17 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], @@ -19,34 +52,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 10, - 20, - 2, - 17 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 10, - 20, - 2, - 17 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_1x65535x2x1x1_f32/test.json b/operators/activation/tanh/tanh_1x65535x2x1x1_f32/test.json index 172315bfd..b9b9de0da 100644 --- a/operators/activation/tanh/tanh_1x65535x2x1x1_f32/test.json +++ b/operators/activation/tanh/tanh_1x65535x2x1x1_f32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65535, + 2, + 1, + 1 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 65535, + 2, + 1, + 1 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,36 +54,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65535, - 2, - 1, - 1 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 1, - 65535, - 2, - 1, - 1 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_1x65540x1x2_f32/test.json b/operators/activation/tanh/tanh_1x65540x1x2_f32/test.json index 6fc69a244..4c4d35eab 100644 --- a/operators/activation/tanh/tanh_1x65540x1x2_f32/test.json +++ b/operators/activation/tanh/tanh_1x65540x1x2_f32/test.json @@ -5,13 +5,46 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65540, + 1, + 2 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 1, + 65540, + 1, + 2 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,34 +52,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65540, - 1, - 2 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 1, - 65540, - 1, - 2 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_21_f32/test.json b/operators/activation/tanh/tanh_21_f32/test.json index 179b748b8..b01019783 100644 --- a/operators/activation/tanh/tanh_21_f32/test.json +++ b/operators/activation/tanh/tanh_21_f32/test.json @@ -5,13 +5,40 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 21 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 21 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,28 +46,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 21 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 21 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_21x40x58_f32/test.json b/operators/activation/tanh/tanh_21x40x58_f32/test.json index 633e16f0a..397ac718b 100644 --- a/operators/activation/tanh/tanh_21x40x58_f32/test.json +++ b/operators/activation/tanh/tanh_21x40x58_f32/test.json @@ -5,13 +5,44 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 21, + 40, + 58 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 21, + 40, + 58 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,32 +50,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 21, - 40, - 58 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 21, - 40, - 58 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_36x36_f32/test.json b/operators/activation/tanh/tanh_36x36_f32/test.json index 4a9cda0dc..db9e9fc2e 100644 --- a/operators/activation/tanh/tanh_36x36_f32/test.json +++ b/operators/activation/tanh/tanh_36x36_f32/test.json @@ -5,13 +5,42 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 36, + 36 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 36, + 36 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,30 +48,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 36, - 36 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 36, - 36 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_3x18x16x11_f32/test.json b/operators/activation/tanh/tanh_3x18x16x11_f32/test.json index e0f58a9fa..a42fcf360 100644 --- a/operators/activation/tanh/tanh_3x18x16x11_f32/test.json +++ b/operators/activation/tanh/tanh_3x18x16x11_f32/test.json @@ -5,13 +5,46 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 3, + 18, + 16, + 11 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 3, + 18, + 16, + 11 + ], + type: "FP32" + } + ], inputs: [ "input-0" ], @@ -19,34 +52,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 3, - 18, - 16, - 11 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 3, - 18, - 16, - 11 - ], - type: "FP32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_3x20x11x12x9_f16/test.json b/operators/activation/tanh/tanh_3x20x11x12x9_f16/test.json index 58d03b017..1528cbd31 100644 --- a/operators/activation/tanh/tanh_3x20x11x12x9_f16/test.json +++ b/operators/activation/tanh/tanh_3x20x11x12x9_f16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 3, + 20, + 11, + 12, + 9 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 3, + 20, + 11, + 12, + 9 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], @@ -19,36 +54,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 3, - 20, - 11, - 12, - 9 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 3, - 20, - 11, - 12, - 9 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_45_bf16/test.json b/operators/activation/tanh/tanh_45_bf16/test.json index 447e6b588..052cdf3e5 100644 --- a/operators/activation/tanh/tanh_45_bf16/test.json +++ b/operators/activation/tanh/tanh_45_bf16/test.json @@ -5,13 +5,40 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 45 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 45 + ], + type: "BF16" + } + ], inputs: [ "input-0" ], @@ -19,28 +46,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 45 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 45 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_47x26_bf16/test.json b/operators/activation/tanh/tanh_47x26_bf16/test.json index 0b7327f43..1542d6d22 100644 --- a/operators/activation/tanh/tanh_47x26_bf16/test.json +++ b/operators/activation/tanh/tanh_47x26_bf16/test.json @@ -5,13 +5,42 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 47, + 26 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 47, + 26 + ], + type: "BF16" + } + ], inputs: [ "input-0" ], @@ -19,30 +48,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 47, - 26 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 47, - 26 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_48x49x48_f16/test.json b/operators/activation/tanh/tanh_48x49x48_f16/test.json index 351026137..d741e9857 100644 --- a/operators/activation/tanh/tanh_48x49x48_f16/test.json +++ b/operators/activation/tanh/tanh_48x49x48_f16/test.json @@ -5,13 +5,44 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 48, + 49, + 48 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 48, + 49, + 48 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], @@ -19,32 +50,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 48, - 49, - 48 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 48, - 49, - 48 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_50_f16/test.json b/operators/activation/tanh/tanh_50_f16/test.json index c5f451e5b..c54e8bdc1 100644 --- a/operators/activation/tanh/tanh_50_f16/test.json +++ b/operators/activation/tanh/tanh_50_f16/test.json @@ -5,13 +5,40 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 50 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 50 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], @@ -19,28 +46,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 50 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 50 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_51x39x23_bf16/test.json b/operators/activation/tanh/tanh_51x39x23_bf16/test.json index b95db2a45..156add33a 100644 --- a/operators/activation/tanh/tanh_51x39x23_bf16/test.json +++ b/operators/activation/tanh/tanh_51x39x23_bf16/test.json @@ -5,13 +5,44 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 51, + 39, + 23 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 51, + 39, + 23 + ], + type: "BF16" + } + ], inputs: [ "input-0" ], @@ -19,32 +50,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 51, - 39, - 23 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 51, - 39, - 23 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_54x21_f16/test.json b/operators/activation/tanh/tanh_54x21_f16/test.json index e11b9b45f..30cf06861 100644 --- a/operators/activation/tanh/tanh_54x21_f16/test.json +++ b/operators/activation/tanh/tanh_54x21_f16/test.json @@ -5,13 +5,42 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 54, + 21 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 54, + 21 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], @@ -19,30 +48,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 54, - 21 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 54, - 21 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_5x22x18x15x10_bf16/test.json b/operators/activation/tanh/tanh_5x22x18x15x10_bf16/test.json index e47b8c710..a82c36a36 100644 --- a/operators/activation/tanh/tanh_5x22x18x15x10_bf16/test.json +++ b/operators/activation/tanh/tanh_5x22x18x15x10_bf16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 5, + 22, + 18, + 15, + 10 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 5, + 22, + 18, + 15, + 10 + ], + type: "BF16" + } + ], inputs: [ "input-0" ], @@ -19,36 +54,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 5, - 22, - 18, - 15, - 10 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 5, - 22, - 18, - 15, - 10 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_5x3x13x23_bf16/test.json b/operators/activation/tanh/tanh_5x3x13x23_bf16/test.json index bff1547dd..57aeaa9b3 100644 --- a/operators/activation/tanh/tanh_5x3x13x23_bf16/test.json +++ b/operators/activation/tanh/tanh_5x3x13x23_bf16/test.json @@ -5,13 +5,46 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 5, + 3, + 13, + 23 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 5, + 3, + 13, + 23 + ], + type: "BF16" + } + ], inputs: [ "input-0" ], @@ -19,34 +52,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 5, - 3, - 13, - 23 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 5, - 3, - 13, - 23 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongInputList_11x10_bf16/test.json b/operators/activation/tanh/tanh_ERRORIF_WrongInputList_11x10_bf16/test.json index ac9a23480..aa756ce84 100644 --- a/operators/activation/tanh/tanh_ERRORIF_WrongInputList_11x10_bf16/test.json +++ b/operators/activation/tanh/tanh_ERRORIF_WrongInputList_11x10_bf16/test.json @@ -5,44 +5,49 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", - inputs: [ + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 11, + 10 + ], + type: "BF16" + } + ], + inputs: [ + "input-0" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 10 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 11, - 10 - ], - type: "BF16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongInputType_7x4x2_i32/test.json b/operators/activation/tanh/tanh_ERRORIF_WrongInputType_7x4x2_i32/test.json index 5f51e1d4a..f045f7687 100644 --- a/operators/activation/tanh/tanh_ERRORIF_WrongInputType_7x4x2_i32/test.json +++ b/operators/activation/tanh/tanh_ERRORIF_WrongInputType_7x4x2_i32/test.json @@ -5,13 +5,44 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 7, + 4, + 2 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 7, + 4, + 2 + ], + type: "INT32" + } + ], inputs: [ "input-0" ], @@ -19,32 +50,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 7, - 4, - 2 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 7, - 4, - 2 - ], - type: "INT32" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongOutputList_11_f16/test.json b/operators/activation/tanh/tanh_ERRORIF_WrongOutputList_11_f16/test.json index 2357afb63..e45a3e776 100644 --- a/operators/activation/tanh/tanh_ERRORIF_WrongOutputList_11_f16/test.json +++ b/operators/activation/tanh/tanh_ERRORIF_WrongOutputList_11_f16/test.json @@ -5,42 +5,47 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP16" + } + ], inputs: [ "input-0" ], outputs: [ - + "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 11 - ], - type: "FP16" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json index 2e75e80af..8fb48be73 100644 --- a/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json +++ b/operators/activation/tanh/tanh_ERRORIF_WrongOutputType_12_f16/test.json @@ -5,13 +5,40 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "TANH", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "TANH", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 12 + ], + type: "INT8" + } + ], inputs: [ "input-0" ], @@ -19,28 +46,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 12 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 12 - ], - type: "INT8" - } - ], - inputs: [ - "input-0" - ], - outputs: [ - "result-0" ] } ] |