diff options
author | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:07 +0100 |
---|---|---|
committer | Jeremy Johnson <jeremy.johnson@arm.com> | 2022-06-17 13:06:07 +0100 |
commit | 8e8683119f76463973cd7e84cfd8e966451074ba (patch) | |
tree | 1e8d2ac2878fdcb97996166d079a0ba9c0684940 /operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0 | |
parent | 9faada17a2a70bd86b1755490eb3acf65654ceaf (diff) | |
download | conformance_tests-8e8683119f76463973cd7e84cfd8e966451074ba.tar.gz |
Updating COND_IF_BINARY tests for v0.30.0 release
Signed-off-by: Jeremy Johnson <jeremy.johnson@arm.com>
Change-Id: I2c09e55b4d6f040c187586ff320dd863183b6ebd
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0')
5 files changed, 336 insertions, 0 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/Conformance-result-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/Conformance-result-0.json new file mode 100644 index 000000000..1bcdf1161 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/Conformance-result-0.json @@ -0,0 +1,47 @@ +{ + "type": "int32", + "data": [ + -18793, + 15494, + 40836, + 27178, + -24061, + -3859, + 50304, + 42790, + 58380, + -1661, + -24700, + -47731, + 25901, + 27044, + -5980, + -5283, + -26558, + 5685, + 42891, + 4449, + -19475, + -11017, + -16741, + 22744, + -13025, + -12101, + -10527, + -10536, + 16228, + -21231, + 25435, + -14467, + 4372, + -40116, + 23437, + 61247, + -53313, + -23279, + 22184, + -8899, + -14850, + 53625 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/desc.json b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/desc.json new file mode 100644 index 000000000..be172ba86 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/desc.json @@ -0,0 +1,22 @@ +{ + "tosa_file": "test.json", + "ifm_name": [ + "input-0", + "input-1" + ], + "ifm_file": [ + "input-0.npy", + "input-1.npy" + ], + "ofm_name": [ + "result-0" + ], + "ofm_file": [ + "result-0.npy" + ], + "expected_return_code": 0, + "expected_failure": false, + "expected_result_file": [ + "Conformance-result-0.npy" + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-0.json b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-0.json new file mode 100644 index 000000000..7c03ee134 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-0.json @@ -0,0 +1,47 @@ +{ + "type": "int32", + "data": [ + -27630, + -1917, + 23436, + 12201, + -9085, + 26863, + 23943, + 16320, + 27965, + -25462, + -10053, + -21697, + 21423, + 14849, + -32301, + -28093, + -7172, + -26855, + 30937, + 13841, + -196, + 2911, + -24662, + 30194, + 3835, + -1481, + 16813, + -20038, + 27898, + -8136, + 14712, + 1545, + 4387, + -11068, + 13853, + 31231, + -26421, + -25243, + 15650, + -24958, + 12641, + 22992 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-1.json b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-1.json new file mode 100644 index 000000000..632f56b02 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/input-1.json @@ -0,0 +1,47 @@ +{ + "type": "int32", + "data": [ + -8837, + -17411, + -17400, + -14977, + 14976, + 30722, + -26361, + -26470, + -30415, + -23801, + 14647, + 26034, + -4478, + -12195, + -26321, + -22810, + 19386, + -32540, + -11954, + 9392, + 19279, + 13928, + -7921, + 7450, + 16860, + 10620, + 27340, + -9502, + 11670, + 13095, + -10723, + 16012, + 15, + 29048, + -9584, + -30016, + 26892, + -1964, + -6534, + -16059, + 27491, + -30633 + ] +}
\ No newline at end of file diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/test.json new file mode 100644 index 000000000..950038783 --- /dev/null +++ b/operators/control_flow/cond_if_binary/cond_if_binary_42_i32_cond0/test.json @@ -0,0 +1,173 @@ +{ + version: { + _major: 0, + _minor: 30, + _patch: 0, + _draft: false + }, + blocks: [ + { + name: "main", + operators: [ + { + op: "CONST", + attribute_type: "NONE", + inputs: [ + + ], + outputs: [ + "const-2" + ] + }, + { + op: "COND_IF", + attribute_type: "CondIfAttribute", + attribute: { + then_branch: "THEN_BLOCK", + else_branch: "ELSE_BLOCK" + }, + inputs: [ + "const-2", + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "const-2", + shape: [ + + ], + type: "BOOL", + data: [ + 0 + ] + }, + { + name: "result-0", + shape: [ + 42 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-0" + ] + }, + { + name: "THEN_BLOCK", + operators: [ + { + op: "ADD", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "result-1", + shape: [ + 42 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-1" + ] + }, + { + name: "ELSE_BLOCK", + operators: [ + { + op: "SUB", + attribute_type: "NONE", + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ], + tensors: [ + { + name: "input-0", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "input-1", + shape: [ + 42 + ], + type: "INT32" + }, + { + name: "result-2", + shape: [ + 42 + ], + type: "INT32" + } + ], + inputs: [ + "input-0", + "input-1" + ], + outputs: [ + "result-2" + ] + } + ] +} |