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
Add_001_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 ifm1
13
json_content[
'ifm1'
] = gen_random_tensor(
14
"uint8"
,
# dtype_str
15
(1),
# scale_shape
16
(1),
# zerop_shape
17
0)
# quantized_dimension
18
19
# Generate ifm2
20
json_content[
'ifm2'
] = gen_random_tensor(
21
"uint8"
,
#dtype_str
22
(1),
# scale_shape
23
(1),
# zerop_shape
24
0,
# quantized_dimension
25
(1, 0, 1))
# value_shape
26
27
# Generate ofm
28
json_content[
'ofm'
] = gen_random_tensor(
29
"uint8"
,
# dtype_str
30
(1),
# scale_shape
31
(1),
# zerop_shape
32
0)
# quantized_dimension
33
34
return
json_content
35
36
9
def
generate
(self) -> dict:
…
5
class
Add_001_Q8
(
TestCase
):
…
37
_name_ =
'Add_001_Q8'
38
39
_test_case_ =
Add_001_Q8
()
Add_001.Add_001_Q8
Definition
__init__.py:5
Add_001.Add_001_Q8.__init__
__init__(self)
Definition
__init__.py:6
Add_001.Add_001_Q8.generate
dict generate(self)
Definition
__init__.py:9
Add_001.Add_001_Q8.name
name
Definition
__init__.py:7
test_utils.TestCase
Definition
test_utils.py:72
compiler
q-implant-qparam-test
qparam
Add_001
__init__.py
Generated by
1.9.8