blob: cfab093b1efebe4100e23fa420849c5826141a44 [file] [log] [blame]
{
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: "CONST",
attribute_type: "NONE",
inputs: [
],
outputs: [
"layer_1"
]
},
{
op: "RESCALE",
attribute_type: "RescaleAttribute",
attribute: {
input_zp: 128,
output_zp: 0,
multiplier: [
1073741824
],
shift: [
30
],
scale32: true,
double_round: false,
per_channel: false
},
inputs: [
"TosaInput_0"
],
outputs: [
"layer_2"
]
},
{
op: "RESCALE",
attribute_type: "RescaleAttribute",
attribute: {
input_zp: 0,
output_zp: 0,
multiplier: [
1073741824
],
shift: [
30
],
scale32: true,
double_round: true,
per_channel: false
},
inputs: [
"layer_2"
],
outputs: [
"layer_3"
]
},
{
op: "RESHAPE",
attribute_type: "ReshapeAttribute",
attribute: {
new_shape: [
1,
1,
4,
2
]
},
inputs: [
"layer_1"
],
outputs: [
"layer_4"
]
},
{
op: "DEPTHWISE_CONV2D",
attribute_type: "ConvAttribute",
attribute: {
pad: [
0,
0,
0,
0
],
stride: [
1,
1
],
dilation: [
1,
1
],
input_zp: 0,
weight_zp: 0
},
inputs: [
"layer_3",
"layer_4",
"layer_0"
],
outputs: [
"layer_5"
]
},
{
op: "RESCALE",
attribute_type: "RescaleAttribute",
attribute: {
input_zp: 0,
output_zp: -15,
multiplier: [
1617397034,
1295934021,
1965439847,
1417314708,
1201505155,
1779323804,
1294602813,
1505974402
],
shift: [
38,
38,
40,
39,
38,
38,
39,
40
],
scale32: true,
double_round: true,
per_channel: true
},
inputs: [
"layer_5"
],
outputs: [
"layer_6"
]
},
{
op: "RESCALE",
attribute_type: "RescaleAttribute",
attribute: {
input_zp: -15,
output_zp: -15,
multiplier: [
1073741824
],
shift: [
30
],
scale32: true,
double_round: true,
per_channel: false
},
inputs: [
"layer_6"
],
outputs: [
"layer_7"
]
},
{
op: "RESCALE",
attribute_type: "RescaleAttribute",
attribute: {
input_zp: -15,
output_zp: 113,
multiplier: [
1073741824
],
shift: [
30
],
scale32: true,
double_round: false,
per_channel: false
},
inputs: [
"layer_7"
],
outputs: [
"TosaOutput_0"
]
}
],
tensors: [
{
name: "TosaInput_0",
shape: [
1,
4,
4,
4
],
type: "UINT8",
data: [
]
},
{
name: "TosaOutput_0",
shape: [
1,
4,
4,
8
],
type: "UINT8",
data: [
]
},
{
name: "layer_0",
shape: [
8
],
type: "INT32",
data: [
235,
30,
0,
0,
171,
0,
0,
0,
208,
27,
0,
0,
109,
165,
255,
255,
81,
244,
255,
255,
234,
250,
255,
255,
2,
224,
255,
255,
126,
241,
255,
255
]
},
{
name: "layer_1",
shape: [
1,
1,
1,
8
],
type: "INT8",
data: [
127,
127,
127,
129,
129,
127,
127,
129
]
},
{
name: "layer_2",
shape: [
1,
4,
4,
4
],
type: "INT8",
data: [
]
},
{
name: "layer_3",
shape: [
1,
4,
4,
4
],
type: "INT8",
data: [
]
},
{
name: "layer_4",
shape: [
1,
1,
4,
2
],
type: "INT8",
data: [
]
},
{
name: "layer_5",
shape: [
1,
4,
4,
8
],
type: "INT32",
data: [
]
},
{
name: "layer_6",
shape: [
1,
4,
4,
8
],
type: "INT8",
data: [
]
},
{
name: "layer_7",
shape: [
1,
4,
4,
8
],
type: "INT8",
data: [
]
}
],
inputs: [
"TosaInput_0"
],
outputs: [
"TosaOutput_0"
]
}
]
}
]
}