ONE - On-device Neural Engine
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
Concatenation_000_Q8
(
TestCase
):
6
def
__init__
(self):
7
self.
name
= _name_
8
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
26
# Generate ofm
27
json_content[
'ofm'
] = gen_random_tensor(
28
"uint8"
,
# dtype_str
29
(1),
# scale_shape
30
(1),
# zerop_shape
31
0)
# quantized_dimension
32
33
return
json_content
34
35
36
_name_ =
'Concatenation_000_Q8'
37
38
_test_case_ =
Concatenation_000_Q8
()
Concatenation_000.Concatenation_000_Q8
Definition
__init__.py:5
Concatenation_000.Concatenation_000_Q8.name
name
Definition
__init__.py:7
Concatenation_000.Concatenation_000_Q8.generate
dict generate(self)
Definition
__init__.py:9
Concatenation_000.Concatenation_000_Q8.__init__
__init__(self)
Definition
__init__.py:6
test_utils.TestCase
Definition
test_utils.py:72
compiler
q-implant-qparam-test
qparam
Concatenation_000
__init__.py
Generated by
1.9.8