blob: 943341be1b0fde65c7ec217795420d243c24c972 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
operand {
name: "ifm"
type: FLOAT32
shape { dim: 1 dim: 3 dim: 3 dim: 2 }
}
operand {
name: "ker"
type: FLOAT32
shape { dim: 1 dim: 1 dim: 1 dim: 2 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "bias"
type: FLOAT32
shape { dim: 1 }
filler {
tag: "gaussian"
arg: "0.0"
arg: "1.0"
}
}
operand {
name: "ofm_c"
type: FLOAT32
shape { dim: 1 dim: 3 dim: 3 dim: 1 }
}
operation {
type: "Conv2D"
conv2d_options {
padding: VALID
stride_w: 1
stride_h: 1
}
input: "ifm"
input: "ker"
input: "bias"
output: "ofm_c"
}
operand {
name: "ofm_q"
type: UINT8
shape { dim: 1 dim: 3 dim: 3 dim: 1 }
quant { min: 0 max: 255 scale: 1.0 zero_point: 0 }
}
operation {
type: "Quantize"
input: "ofm_c"
output: "ofm_q"
}
operand {
name: "ofm"
type: INT16
shape { dim: 1 dim: 3 dim: 3 dim: 1 }
quant { min: -255 max: 255 scale: 1.0 zero_point: 0 }
}
operation {
type: "Quantize"
input: "ofm_q"
output: "ofm"
}
input: "ifm"
output: "ofm"
|