diff options
Diffstat (limited to 'operators/ew_binary/logical_and')
13 files changed, 592 insertions, 527 deletions
diff --git a/operators/ew_binary/logical_and/logical_and_1x2x1x65536_b/test.json b/operators/ew_binary/logical_and/logical_and_1x2x1x65536_b/test.json index 98616064d..e6936a11a 100644 --- a/operators/ew_binary/logical_and/logical_and_1x2x1x65536_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_1x2x1x65536_b/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 2, + 1, + 65536 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1, + 1, + 1, + 65536 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 1, + 2, + 1, + 65536 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 2, - 1, - 65536 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 1, - 1, - 1, - 65536 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 1, - 2, - 1, - 65536 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_1x65538x1_b/test.json b/operators/ew_binary/logical_and/logical_and_1x65538x1_b/test.json index b332c5718..e983b3916 100644 --- a/operators/ew_binary/logical_and/logical_and_1x65538x1_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_1x65538x1_b/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 1, + 65538, + 1 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1, + 65538, + 1 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 1, + 65538, + 1 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 1, - 65538, - 1 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 1, - 65538, - 1 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 1, - 65538, - 1 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_2x11x4x2x8_b/test.json b/operators/ew_binary/logical_and/logical_and_2x11x4x2x8_b/test.json index 72cf88ec0..37d5ca16b 100644 --- a/operators/ew_binary/logical_and/logical_and_2x11x4x2x8_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_2x11x4x2x8_b/test.json @@ -5,13 +5,60 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 11, + 4, + 2, + 8 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 2, + 11, + 4, + 1, + 8 + ], + type: "BOOL" + }, + { + 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: "BOOL" - }, - { - name: "input-1", - shape: [ - 2, - 11, - 4, - 1, - 8 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 2, - 11, - 4, - 2, - 8 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_2x12x10x1_b/test.json b/operators/ew_binary/logical_and/logical_and_2x12x10x1_b/test.json index 8293f6353..ceb5e9f1d 100644 --- a/operators/ew_binary/logical_and/logical_and_2x12x10x1_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_2x12x10x1_b/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 2, + 12, + 10, + 1 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 2, + 12, + 10, + 7 + ], + type: "BOOL" + }, + { + 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: "BOOL" - }, - { - name: "input-1", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 2, - 12, - 10, - 7 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_42x1_b/test.json b/operators/ew_binary/logical_and/logical_and_42x1_b/test.json index 34ed5fdef..ac5cb9aa2 100644 --- a/operators/ew_binary/logical_and/logical_and_42x1_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_42x1_b/test.json @@ -5,13 +5,51 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 42, + 1 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 42, + 28 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 42, + 28 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,39 +58,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 42, - 1 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 42, - 28 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 42, - 28 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_6_b/test.json b/operators/ew_binary/logical_and/logical_and_6_b/test.json index d116b3afc..7111f4d86 100644 --- a/operators/ew_binary/logical_and/logical_and_6_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_6_b/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 6 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 6 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,36 +55,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 6 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 6 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_6x1x13_b/test.json b/operators/ew_binary/logical_and/logical_and_6x1x13_b/test.json index 760dfbb8b..3ac5eee80 100644 --- a/operators/ew_binary/logical_and/logical_and_6x1x13_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_6x1x13_b/test.json @@ -5,13 +5,54 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 6, + 1, + 13 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 6, + 44, + 13 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 6, + 44, + 13 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,42 +61,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 6, - 1, - 13 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 6, - 44, - 13 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 6, - 44, - 13 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_DimensionMismatch_11x7x11x3_b/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_DimensionMismatch_11x7x11x3_b/test.json index 59b5d048e..cb868ca94 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_DimensionMismatch_11x7x11x3_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_DimensionMismatch_11x7x11x3_b/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 11, + 7, + 11, + 3 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 11, + 7, + 11, + 4 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 11, + 7, + 11, + 3 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 11, - 7, - 11, - 3 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 11, - 7, - 11, - 4 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 11, - 7, - 11, - 3 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_RankMismatch_13x2_b/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_RankMismatch_13x2_b/test.json index e60912488..7de443e34 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_RankMismatch_13x2_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_RankMismatch_13x2_b/test.json @@ -5,13 +5,50 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 2 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 13 + ], + type: "BOOL" + }, + { + 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: "BOOL" - }, - { - name: "input-1", - shape: [ - 13 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 13, - 2 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputList_13x1x13x5_b/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputList_13x1x13x5_b/test.json index 14f225630..622d7b0ee 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputList_13x1x13x5_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputList_13x1x13x5_b/test.json @@ -5,59 +5,64 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 13, + 1, + 13, + 5 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 13, + 1, + 13, + 1 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 13, + 1, + 13, + 5 + ], + type: "BOOL" + } + ], inputs: [ - "input-0" + "input-0", + "input-1" ], outputs: [ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 13, - 1, - 13, - 5 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 13, - 1, - 13, - 1 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 13, - 1, - 13, - 5 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputType_5x12x13x7_i4/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputType_5x12x13x7_i4/test.json index 0a64891e6..d3e0db9cd 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputType_5x12x13x7_i4/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongInputType_5x12x13x7_i4/test.json @@ -5,13 +5,57 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 5, + 12, + 13, + 7 + ], + type: "INT4" + }, + { + name: "input-1", + shape: [ + 5, + 12, + 13, + 1 + ], + type: "INT4" + }, + { + name: "result-0", + shape: [ + 5, + 12, + 13, + 7 + ], + type: "INT4" + } + ], inputs: [ "input-0", "input-1" @@ -20,45 +64,6 @@ "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 5, - 12, - 13, - 7 - ], - type: "INT4" - }, - { - name: "input-1", - shape: [ - 5, - 12, - 13, - 1 - ], - type: "INT4" - }, - { - name: "result-0", - shape: [ - 5, - 12, - 13, - 7 - ], - type: "INT4" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputList_10x7x7x7_b/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputList_10x7x7x7_b/test.json index a1bf893e9..3eefab79e 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputList_10x7x7x7_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputList_10x7x7x7_b/test.json @@ -5,60 +5,65 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 10, + 7, + 7, + 7 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 10, + 7, + 7, + 1 + ], + type: "BOOL" + }, + { + name: "result-0", + shape: [ + 10, + 7, + 7, + 7 + ], + type: "BOOL" + } + ], inputs: [ "input-0", "input-1" ], outputs: [ - + "result-0" ] } - ], - tensors: [ - { - name: "input-0", - shape: [ - 10, - 7, - 7, - 7 - ], - type: "BOOL" - }, - { - name: "input-1", - shape: [ - 10, - 7, - 7, - 1 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 10, - 7, - 7, - 7 - ], - type: "BOOL" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] diff --git a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputType_12_b/test.json b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputType_12_b/test.json index dfda6d79e..c48afc7e1 100644 --- a/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputType_12_b/test.json +++ b/operators/ew_binary/logical_and/logical_and_ERRORIF_WrongOutputType_12_b/test.json @@ -5,13 +5,48 @@ _patch: 0, _draft: true }, - blocks: [ + regions: [ { name: "main", - operators: [ + blocks: [ { - op: "LOGICAL_AND", - attribute_type: "NONE", + name: "main", + operators: [ + { + op: "LOGICAL_AND", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 12 + ], + type: "BOOL" + }, + { + name: "input-1", + shape: [ + 1 + ], + type: "BOOL" + }, + { + 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: "BOOL" - }, - { - name: "input-1", - shape: [ - 1 - ], - type: "BOOL" - }, - { - name: "result-0", - shape: [ - 12 - ], - type: "FP32" - } - ], - inputs: [ - "input-0", - "input-1" - ], - outputs: [ - "result-0" ] } ] |