diff options
Diffstat (limited to 'operators/comparison/equal')
13 files changed, 587 insertions, 522 deletions
diff --git a/operators/comparison/equal/equal_1x2x65501x1_i32/test.json b/operators/comparison/equal/equal_1x2x65501x1_i32/test.json index d1710285e..944813cfe 100644 --- a/operators/comparison/equal/equal_1x2x65501x1_i32/test.json +++ b/operators/comparison/equal/equal_1x2x65501x1_i32/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 65501, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 2, + 65501, + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 2, + 65501, + 1 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 2, - 65501, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1, - 2, - 65501, - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 1, - 2, - 65501, - 1 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_1x65541x1x1x1_i32/test.json b/operators/comparison/equal/equal_1x65541x1x1x1_i32/test.json index 2fb052e6c..7f3352a80 100644 --- a/operators/comparison/equal/equal_1x65541x1x1x1_i32/test.json +++ b/operators/comparison/equal/equal_1x65541x1x1x1_i32/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65541, + 1, + 1, + 1 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 1, + 65541, + 1, + 1, + 1 + ], + type: "INT32" + }, + { + name: "result-0", + shape: [ + 1, + 65541, + 1, + 1, + 1 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,48 +67,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65541, - 1, - 1, - 1 - ], - type: "INT32" - }, - { - name: "input-1", - shape: [ - 1, - 65541, - 1, - 1, - 1 - ], - type: "INT32" - }, - { - name: "result-0", - shape: [ - 1, - 65541, - 1, - 1, - 1 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_20_i32/test.json b/operators/comparison/equal/equal_20_i32/test.json index 2916ed9bc..a80e25ac7 100644 --- a/operators/comparison/equal/equal_20_i32/test.json +++ b/operators/comparison/equal/equal_20_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_20x1x25_i32/test.json b/operators/comparison/equal/equal_20x1x25_i32/test.json index 1ea68799c..76cc40f7b 100644 --- a/operators/comparison/equal/equal_20x1x25_i32/test.json +++ b/operators/comparison/equal/equal_20x1x25_i32/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_2x11x4x2x8_i32/test.json b/operators/comparison/equal/equal_2x11x4x2x8_i32/test.json index ad9d57143..af6f00d97 100644 --- a/operators/comparison/equal/equal_2x11x4x2x8_i32/test.json +++ b/operators/comparison/equal/equal_2x11x4x2x8_i32/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_2x12x10x1_i32/test.json b/operators/comparison/equal/equal_2x12x10x1_i32/test.json index d1d3a102b..df6885b23 100644 --- a/operators/comparison/equal/equal_2x12x10x1_i32/test.json +++ b/operators/comparison/equal/equal_2x12x10x1_i32/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_47x1_i32/test.json b/operators/comparison/equal/equal_47x1_i32/test.json index 05cae82b4..9aa562b1a 100644 --- a/operators/comparison/equal/equal_47x1_i32/test.json +++ b/operators/comparison/equal/equal_47x1_i32/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_DimensionMismatch_12_i32/test.json b/operators/comparison/equal/equal_ERRORIF_DimensionMismatch_12_i32/test.json index ba548d3c3..09c3b0ae7 100644 --- a/operators/comparison/equal/equal_ERRORIF_DimensionMismatch_12_i32/test.json +++ b/operators/comparison/equal/equal_ERRORIF_DimensionMismatch_12_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_RankMismatch_13x2_i32/test.json b/operators/comparison/equal/equal_ERRORIF_RankMismatch_13x2_i32/test.json index ad7fd5198..cfcbc9aa4 100644 --- a/operators/comparison/equal/equal_ERRORIF_RankMismatch_13x2_i32/test.json +++ b/operators/comparison/equal/equal_ERRORIF_RankMismatch_13x2_i32/test.json @@ -5,13 +5,50 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_WrongInputList_11x5x12x9_i32/test.json b/operators/comparison/equal/equal_ERRORIF_WrongInputList_11x5x12x9_i32/test.json index 6aae4f883..d7431e504 100644 --- a/operators/comparison/equal/equal_ERRORIF_WrongInputList_11x5x12x9_i32/test.json +++ b/operators/comparison/equal/equal_ERRORIF_WrongInputList_11x5x12x9_i32/test.json @@ -5,59 +5,64 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_WrongInputType_14x11x12_i4/test.json b/operators/comparison/equal/equal_ERRORIF_WrongInputType_14x11x12_i4/test.json index 24acb5391..5eee43938 100644 --- a/operators/comparison/equal/equal_ERRORIF_WrongInputType_14x11x12_i4/test.json +++ b/operators/comparison/equal/equal_ERRORIF_WrongInputType_14x11x12_i4/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json b/operators/comparison/equal/equal_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json index 40e4b3af7..c0965d72f 100644 --- a/operators/comparison/equal/equal_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json +++ b/operators/comparison/equal/equal_ERRORIF_WrongOutputList_10x8x13x9_i32/test.json @@ -5,61 +5,66 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "BOOL" + } + ], 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: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/comparison/equal/equal_ERRORIF_WrongOutputType_12_i32/test.json b/operators/comparison/equal/equal_ERRORIF_WrongOutputType_12_i32/test.json index 799ccfd18..f5365f60a 100644 --- a/operators/comparison/equal/equal_ERRORIF_WrongOutputType_12_i32/test.json +++ b/operators/comparison/equal/equal_ERRORIF_WrongOutputType_12_i32/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "EQUAL", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "EQUAL", + 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: "INT48" + } + ], 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: "INT48" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] |