ONE - On-device Neural Engine
Loading...
Searching...
No Matches
DepthwiseConv2D_001.DepthwiseConv2D_001_Q8 Class Reference
Collaboration diagram for DepthwiseConv2D_001.DepthwiseConv2D_001_Q8:

Public Member Functions

 __init__ (self)
 
dict generate (self)
 

Data Fields

 name
 

Detailed Description

Definition at line 5 of file __init__.py.

Constructor & Destructor Documentation

◆ __init__()

DepthwiseConv2D_001.DepthwiseConv2D_001_Q8.__init__ (   self)

Reimplemented from test_utils.TestCase.

Definition at line 6 of file __init__.py.

6 def __init__(self):
7 self.name = _name_
8

Member Function Documentation

◆ generate()

dict DepthwiseConv2D_001.DepthwiseConv2D_001_Q8.generate (   self)

Reimplemented from test_utils.TestCase.

Definition at line 9 of file __init__.py.

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

Field Documentation

◆ name

DepthwiseConv2D_001.DepthwiseConv2D_001_Q8.name

Definition at line 7 of file __init__.py.


The documentation for this class was generated from the following file: