From b08fb3e856b7757403ff9aafc9487f9c0ad61fe7 Mon Sep 17 00:00:00 2001 From: Jeremy Johnson Date: Mon, 16 Jan 2023 15:17:52 +0000 Subject: Regen tests after control flow operator support Includes removing 3 tests that are not needed anymore. Signed-off-by: Jeremy Johnson Change-Id: I2c62d95a7b053e9016000d90125e00862f94200e --- operators/ew_binary/pow/pow_1_f16/test.json | 73 ++++++++-------- operators/ew_binary/pow/pow_1x37x37_bf16/test.json | 85 ++++++++++--------- operators/ew_binary/pow/pow_1x37x40_f32/test.json | 85 ++++++++++--------- operators/ew_binary/pow/pow_1x49_f32/test.json | 79 +++++++++--------- operators/ew_binary/pow/pow_20_f32/test.json | 73 ++++++++-------- .../ew_binary/pow/pow_2x11x4x2x8_f16/test.json | 97 ++++++++++++---------- .../ew_binary/pow/pow_2x12x10x1_f16/test.json | 91 ++++++++++---------- .../ew_binary/pow/pow_2x65541x1x1x1_bf16/test.json | 97 ++++++++++++---------- operators/ew_binary/pow/pow_36_bf16/test.json | 73 ++++++++-------- operators/ew_binary/pow/pow_41x62_f16/test.json | 79 +++++++++--------- operators/ew_binary/pow/pow_50x53_bf16/test.json | 79 +++++++++--------- operators/ew_binary/pow/pow_60x53x1_f16/test.json | 85 ++++++++++--------- .../ew_binary/pow/pow_65534x3x1x1_bf16/test.json | 91 ++++++++++---------- .../pow_ERRORIF_DimensionMismatch_12_f32/test.json | 73 ++++++++-------- .../test.json | 89 ++++++++++---------- .../pow_ERRORIF_WrongInputList_11_f16/test.json | 77 +++++++++-------- .../test.json | 85 ++++++++++--------- .../pow_ERRORIF_WrongOutputList_11_f16/test.json | 75 +++++++++-------- .../test.json | 85 ++++++++++--------- 19 files changed, 833 insertions(+), 738 deletions(-) (limited to 'operators/ew_binary/pow') diff --git a/operators/ew_binary/pow/pow_1_f16/test.json b/operators/ew_binary/pow/pow_1_f16/test.json index 344d38743..33e2539e7 100644 --- a/operators/ew_binary/pow/pow_1_f16/test.json +++ b/operators/ew_binary/pow/pow_1_f16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_1x37x37_bf16/test.json b/operators/ew_binary/pow/pow_1x37x37_bf16/test.json index 6485477e8..0e2ea146c 100644 --- a/operators/ew_binary/pow/pow_1x37x37_bf16/test.json +++ b/operators/ew_binary/pow/pow_1x37x37_bf16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_1x37x40_f32/test.json b/operators/ew_binary/pow/pow_1x37x40_f32/test.json index c69a14698..6df80255a 100644 --- a/operators/ew_binary/pow/pow_1x37x40_f32/test.json +++ b/operators/ew_binary/pow/pow_1x37x40_f32/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_1x49_f32/test.json b/operators/ew_binary/pow/pow_1x49_f32/test.json index 0c1615bfe..0de4fafca 100644 --- a/operators/ew_binary/pow/pow_1x49_f32/test.json +++ b/operators/ew_binary/pow/pow_1x49_f32/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_20_f32/test.json b/operators/ew_binary/pow/pow_20_f32/test.json index d773b1f32..434b7877f 100644 --- a/operators/ew_binary/pow/pow_20_f32/test.json +++ b/operators/ew_binary/pow/pow_20_f32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_2x11x4x2x8_f16/test.json b/operators/ew_binary/pow/pow_2x11x4x2x8_f16/test.json index dc44bdab2..424119338 100644 --- a/operators/ew_binary/pow/pow_2x11x4x2x8_f16/test.json +++ b/operators/ew_binary/pow/pow_2x11x4x2x8_f16/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1, + 8 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 2, - 11, - 4, - 1, - 8 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_2x12x10x1_f16/test.json b/operators/ew_binary/pow/pow_2x12x10x1_f16/test.json index b858fa6b0..1c9d460c8 100644 --- a/operators/ew_binary/pow/pow_2x12x10x1_f16/test.json +++ b/operators/ew_binary/pow/pow_2x12x10x1_f16/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12, + 10, + 1 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 12, - 10, - 1 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_2x65541x1x1x1_bf16/test.json b/operators/ew_binary/pow/pow_2x65541x1x1x1_bf16/test.json index 3bbbeae08..a34349cda 100644 --- a/operators/ew_binary/pow/pow_2x65541x1x1x1_bf16/test.json +++ b/operators/ew_binary/pow/pow_2x65541x1x1x1_bf16/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 65541, + 1, + 1, + 1 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 2, + 65541, + 1, + 1, + 1 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 2, + 65541, + 1, + 1, + 1 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 2, - 65541, - 1, - 1, - 1 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 2, - 65541, - 1, - 1, - 1 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 2, - 65541, - 1, - 1, - 1 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_36_bf16/test.json b/operators/ew_binary/pow/pow_36_bf16/test.json index 8e8b89ace..9b5860551 100644 --- a/operators/ew_binary/pow/pow_36_bf16/test.json +++ b/operators/ew_binary/pow/pow_36_bf16/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_41x62_f16/test.json b/operators/ew_binary/pow/pow_41x62_f16/test.json index c4775b7b2..4029dbd97 100644 --- a/operators/ew_binary/pow/pow_41x62_f16/test.json +++ b/operators/ew_binary/pow/pow_41x62_f16/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_50x53_bf16/test.json b/operators/ew_binary/pow/pow_50x53_bf16/test.json index 43717f67c..a7dfb7fee 100644 --- a/operators/ew_binary/pow/pow_50x53_bf16/test.json +++ b/operators/ew_binary/pow/pow_50x53_bf16/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_60x53x1_f16/test.json b/operators/ew_binary/pow/pow_60x53x1_f16/test.json index b82fb698b..d81cebbd0 100644 --- a/operators/ew_binary/pow/pow_60x53x1_f16/test.json +++ b/operators/ew_binary/pow/pow_60x53x1_f16/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_65534x3x1x1_bf16/test.json b/operators/ew_binary/pow/pow_65534x3x1x1_bf16/test.json index 02f202afc..93bec5dee 100644 --- a/operators/ew_binary/pow/pow_65534x3x1x1_bf16/test.json +++ b/operators/ew_binary/pow/pow_65534x3x1x1_bf16/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 65534, + 3, + 1, + 1 + ], + type: "BF16" + }, + { + name: "input-1", + shape: [ + 65534, + 3, + 1, + 1 + ], + type: "BF16" + }, + { + name: "result-0", + shape: [ + 65534, + 3, + 1, + 1 + ], + type: "BF16" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 65534, - 3, - 1, - 1 - ], - type: "BF16" - }, - { - name: "input-1", - shape: [ - 65534, - 3, - 1, - 1 - ], - type: "BF16" - }, - { - name: "result-0", - shape: [ - 65534, - 3, - 1, - 1 - ], - type: "BF16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json index 01c7f1fb9..7189b0c75 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_DimensionMismatch_12_f32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 13 + ], + type: "FP32" + }, + { + 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: "FP32" - }, - { - name: "input-1", - shape: [ - 13 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 12 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json b/operators/ew_binary/pow/pow_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json index 61583b934..8e4d515fc 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_RankMismatch_12x11x14x12_bf16/test.json @@ -5,13 +5,56 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + 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/pow/pow_ERRORIF_WrongInputList_11_f16/test.json b/operators/ew_binary/pow/pow_ERRORIF_WrongInputList_11_f16/test.json index 36e698a8c..d5d22146a 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_WrongInputList_11_f16/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_WrongInputList_11_f16/test.json @@ -5,52 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1", + "eiDummyInput" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP16" + } + ], inputs: [ "input-0", - "input-1", - "eiDummyInput" + "input-1" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 11 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongInputType_11x10x3_i8/test.json b/operators/ew_binary/pow/pow_ERRORIF_WrongInputType_11x10x3_i8/test.json index c2857afac..1781da4b8 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_WrongInputType_11x10x3_i8/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_WrongInputType_11x10x3_i8/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT8" + }, + { + name: "input-1", + shape: [ + 11, + 10, + 1 + ], + type: "INT8" + }, + { + name: "result-0", + shape: [ + 11, + 10, + 3 + ], + type: "INT8" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 10, - 3 - ], - type: "INT8" - }, - { - name: "input-1", - shape: [ - 11, - 10, - 1 - ], - type: "INT8" - }, - { - name: "result-0", - shape: [ - 11, - 10, - 3 - ], - type: "INT8" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputList_11_f16/test.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputList_11_f16/test.json index 7092736bb..ebf3016f6 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputList_11_f16/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputList_11_f16/test.json @@ -5,51 +5,56 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11 + ], + type: "FP16" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "FP16" + }, + { + name: "result-0", + shape: [ + 11 + ], + type: "FP16" + } + ], inputs: [ "input-0", "input-1" ], outputs: [ - + "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11 - ], - type: "FP16" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "FP16" - }, - { - name: "result-0", - shape: [ - 11 - ], - type: "FP16" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json index c8b9cf647..cf9d0ca3c 100644 --- a/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json +++ b/operators/ew_binary/pow/pow_ERRORIF_WrongOutputType_10x2x9_f32/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "POW", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "POW", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 2, + 9 + ], + type: "FP32" + }, + { + name: "input-1", + shape: [ + 10, + 1, + 9 + ], + type: "FP32" + }, + { + name: "result-0", + shape: [ + 10, + 2, + 9 + ], + type: "INT8" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 10, - 2, - 9 - ], - type: "FP32" - }, - { - name: "input-1", - shape: [ - 10, - 1, - 9 - ], - type: "FP32" - }, - { - name: "result-0", - shape: [ - 10, - 2, - 9 - ], - type: "INT8" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] -- cgit v1.2.1