ONE - On-device Neural Engine
Loading...
Searching...
No Matches
__init__.py
Go to the documentation of this file.
1from test_utils import TestCase
2from test_utils import gen_random_tensor
3
4
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 "int32", #dtype_str
22 (1), # scale_shape
23 (1), # zerop_shape
24 0, # quantized_dimension
25 (1, 2, 2, 3)) # 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
37_name_ = 'Mul_001_Q8'
38
39_test_case_ = Mul_001_Q8()
dict generate(self)
Definition __init__.py:9