aboutsummaryrefslogtreecommitdiff
path: root/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json
diff options
context:
space:
mode:
Diffstat (limited to 'operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json')
-rw-r--r--operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json277
1 files changed, 141 insertions, 136 deletions
diff --git a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json
index cc69ed4ad..89b21009b 100644
--- a/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json
+++ b/operators/control_flow/cond_if_binary/cond_if_binary_55x6_i16_cond1/test.json
@@ -5,87 +5,125 @@
_patch: 0,
_draft: true
},
- blocks: [
+ regions: [
{
name: "main",
- operators: [
+ blocks: [
{
- op: "CONST",
- attribute_type: "NONE",
- inputs: [
+ 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: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "const-2",
+ shape: [
+
+ ],
+ type: "BOOL",
+ data: [
+ 1
+ ]
+ },
+ {
+ name: "result-0",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ }
],
- 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: [
- 55,
- 6
- ],
- type: "INT16"
},
{
- name: "input-1",
- shape: [
- 55,
- 6
+ name: "THEN_BLOCK",
+ operators: [
+ {
+ op: "LOGICAL_RIGHT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-1"
+ ]
+ }
],
- type: "INT16"
- },
- {
- name: "const-2",
- shape: [
-
- ],
- type: "BOOL",
- data: [
- 1
- ]
- },
- {
- name: "result-0",
- shape: [
- 55,
- 6
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-1",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ }
],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0",
- "input-1"
- ],
- outputs: [
- "result-0"
- ]
- },
- {
- name: "THEN_BLOCK",
- operators: [
- {
- op: "LOGICAL_RIGHT_SHIFT",
- attribute_type: "NONE",
inputs: [
"input-0",
"input-1"
@@ -93,48 +131,48 @@
outputs: [
"result-1"
]
- }
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 55,
- 6
- ],
- type: "INT16"
},
{
- name: "input-1",
- shape: [
- 55,
- 6
+ name: "ELSE_BLOCK",
+ operators: [
+ {
+ op: "LOGICAL_LEFT_SHIFT",
+ attribute_type: "NONE",
+ inputs: [
+ "input-0",
+ "input-1"
+ ],
+ outputs: [
+ "result-2"
+ ]
+ }
],
- type: "INT16"
- },
- {
- name: "result-1",
- shape: [
- 55,
- 6
+ tensors: [
+ {
+ name: "input-0",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "input-1",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ },
+ {
+ name: "result-2",
+ shape: [
+ 55,
+ 6
+ ],
+ type: "INT16"
+ }
],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0",
- "input-1"
- ],
- outputs: [
- "result-1"
- ]
- },
- {
- name: "ELSE_BLOCK",
- operators: [
- {
- op: "LOGICAL_LEFT_SHIFT",
- attribute_type: "NONE",
inputs: [
"input-0",
"input-1"
@@ -143,39 +181,6 @@
"result-2"
]
}
- ],
- tensors: [
- {
- name: "input-0",
- shape: [
- 55,
- 6
- ],
- type: "INT16"
- },
- {
- name: "input-1",
- shape: [
- 55,
- 6
- ],
- type: "INT16"
- },
- {
- name: "result-2",
- shape: [
- 55,
- 6
- ],
- type: "INT16"
- }
- ],
- inputs: [
- "input-0",
- "input-1"
- ],
- outputs: [
- "result-2"
]
}
]