| { |
| version: { |
| _major: 0, |
| _minor: 70, |
| _patch: 0, |
| _draft: false |
| }, |
| regions: [ |
| { |
| name: "main", |
| blocks: [ |
| { |
| name: "main", |
| operators: [ |
| { |
| op: "CONST", |
| attribute_type: "NONE", |
| inputs: [ |
| |
| ], |
| outputs: [ |
| "layer_0" |
| ] |
| }, |
| { |
| op: "CAST", |
| attribute_type: "NONE", |
| inputs: [ |
| "TosaInput_0" |
| ], |
| outputs: [ |
| "layer_1" |
| ] |
| }, |
| { |
| op: "LOGICAL_LEFT_SHIFT", |
| attribute_type: "NONE", |
| inputs: [ |
| "layer_1", |
| "layer_0" |
| ], |
| outputs: [ |
| "layer_2" |
| ] |
| }, |
| { |
| op: "RESCALE", |
| attribute_type: "RescaleAttribute", |
| attribute: { |
| input_zp: 0, |
| output_zp: 0, |
| multiplier: [ |
| 2144009193 |
| ], |
| shift: [ |
| 32 |
| ], |
| scale32: true, |
| double_round: true, |
| per_channel: false |
| }, |
| inputs: [ |
| "layer_2" |
| ], |
| outputs: [ |
| "layer_3" |
| ] |
| }, |
| { |
| op: "RESCALE", |
| attribute_type: "RescaleAttribute", |
| attribute: { |
| input_zp: 0, |
| output_zp: 0, |
| multiplier: [ |
| 1073741824 |
| ], |
| shift: [ |
| 16 |
| ], |
| scale32: true, |
| double_round: true, |
| per_channel: false |
| }, |
| inputs: [ |
| "TosaInput_1" |
| ], |
| outputs: [ |
| "layer_4" |
| ] |
| }, |
| { |
| op: "ADD", |
| attribute_type: "NONE", |
| inputs: [ |
| "layer_3", |
| "layer_4" |
| ], |
| outputs: [ |
| "layer_5" |
| ] |
| }, |
| { |
| op: "RESCALE", |
| attribute_type: "RescaleAttribute", |
| attribute: { |
| input_zp: 0, |
| output_zp: 0, |
| multiplier: [ |
| 1152071270 |
| ], |
| shift: [ |
| 45 |
| ], |
| scale32: true, |
| double_round: true, |
| per_channel: false |
| }, |
| inputs: [ |
| "layer_5" |
| ], |
| outputs: [ |
| "TosaOutput_0" |
| ] |
| } |
| ], |
| tensors: [ |
| { |
| name: "TosaInput_0", |
| shape: [ |
| 1 |
| ], |
| type: "INT16", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "TosaInput_1", |
| shape: [ |
| 1 |
| ], |
| type: "INT16", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "TosaOutput_0", |
| shape: [ |
| 1 |
| ], |
| type: "INT16", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "layer_0", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| 15, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0, |
| 0 |
| ] |
| }, |
| { |
| name: "layer_1", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "layer_2", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "layer_3", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "layer_4", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| |
| ] |
| }, |
| { |
| name: "layer_5", |
| shape: [ |
| 1 |
| ], |
| type: "INT32", |
| data: [ |
| |
| ] |
| } |
| ], |
| inputs: [ |
| "TosaInput_0", |
| "TosaInput_1" |
| ], |
| outputs: [ |
| "TosaOutput_0" |
| ] |
| } |
| ] |
| } |
| ] |
| } |