ONE - On-device Neural Engine
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
y
z
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
w
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Enumerations
a
b
c
d
e
f
i
k
l
m
n
o
p
q
r
s
t
u
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
u
v
w
y
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Functions
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
~
Variables
_
a
b
c
d
e
f
g
h
i
j
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
z
Typedefs
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
z
Enumerations
a
c
d
e
f
g
i
k
l
m
o
p
r
s
t
w
Enumerator
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Related Symbols
a
b
c
d
e
f
g
h
i
m
n
o
p
r
s
t
u
v
w
Files
File List
Globals
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Functions
a
b
c
d
e
f
g
h
i
l
m
n
o
p
q
r
s
t
u
v
Variables
_
b
c
d
f
g
i
k
m
n
o
p
s
t
v
Typedefs
a
d
f
g
i
l
m
n
o
s
t
u
v
Enumerations
f
g
n
o
p
r
Enumerator
a
k
n
Macros
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1
from
test_utils
import
TestCase
2
from
test_utils
import
gen_random_tensor
3
4
5
class
DepthwiseConv2D_000_Q8
(
TestCase
):
6
def
__init__
(self):
7
self.
name
= _name_
8
6
def
__init__
(self):
…
9
def
generate
(self) -> dict:
10
json_content = dict()
11
12
# Generate ifm
13
json_content[
'ifm'
] = gen_random_tensor(
14
"uint8"
,
# dtype_str
15
(1),
# scale_shape
16
(1),
# zerop_shape
17
0)
# quantized_dimension
18
19
# Generate ker
20
json_content[
'ker'
] = gen_random_tensor(
21
"uint8"
,
#dtype_str
22
(1),
# scale_shape
23
(1),
# zerop_shape
24
0)
# quantized_dimension
25
26
# Generate bias
27
json_content[
'bias'
] = gen_random_tensor(
28
"int32"
,
#dtype_str
29
(1),
# scale_shape
30
(1),
# zerop_shape
31
0,
# quantized_dimension
32
(8))
# value_shape
33
34
# Generate ofm
35
json_content[
'ofm'
] = gen_random_tensor(
36
"uint8"
,
# dtype_str
37
(1),
# scale_shape
38
(1),
# zerop_shape
39
0)
# quantized_dimension
40
41
return
json_content
42
43
9
def
generate
(self) -> dict:
…
5
class
DepthwiseConv2D_000_Q8
(
TestCase
):
…
44
_name_ =
'DepthwiseConv2D_000_Q8'
45
46
_test_case_ =
DepthwiseConv2D_000_Q8
()
DepthwiseConv2D_000.DepthwiseConv2D_000_Q8
Definition
__init__.py:5
DepthwiseConv2D_000.DepthwiseConv2D_000_Q8.__init__
__init__(self)
Definition
__init__.py:6
DepthwiseConv2D_000.DepthwiseConv2D_000_Q8.name
name
Definition
__init__.py:7
DepthwiseConv2D_000.DepthwiseConv2D_000_Q8.generate
dict generate(self)
Definition
__init__.py:9
test_utils.TestCase
Definition
test_utils.py:72
compiler
q-implant-qparam-test
qparam
DepthwiseConv2D_000
__init__.py
Generated by
1.9.8