ONE - On-device Neural Engine
Loading...
Searching...
No Matches
onert::ir::FeatureShape Struct Reference

Structure to have values of dimensions for feature. More...

#include <Shape.h>

Collaboration diagram for onert::ir::FeatureShape:

Public Member Functions

 FeatureShape ()=default
 Construct FeatureShape object using default constrcutor.
 
 FeatureShape (int32_t depth, int32_t height, int32_t width)
 Construct FeatureShape object with three values of dimensions.
 
 FeatureShape (int32_t batch, int32_t depth, int32_t height, int32_t width)
 Construct FeatureShape object with four values of dimensions.
 

Data Fields

int32_t N
 
int32_t C
 
int32_t H
 
int32_t W
 

Detailed Description

Structure to have values of dimensions for feature.

Definition at line 35 of file Shape.h.

Constructor & Destructor Documentation

◆ FeatureShape() [1/3]

onert::ir::FeatureShape::FeatureShape ( )
default

Construct FeatureShape object using default constrcutor.

◆ FeatureShape() [2/3]

onert::ir::FeatureShape::FeatureShape ( int32_t  depth,
int32_t  height,
int32_t  width 
)
inline

Construct FeatureShape object with three values of dimensions.

Parameters
[in]depthThe depth value
[in]heightThe height value
[in]widthThe width value

Definition at line 52 of file Shape.h.

52 : N{1}, C{depth}, H{height}, W{width}
53 {
54 // DO NOTHING
55 }

◆ FeatureShape() [3/3]

onert::ir::FeatureShape::FeatureShape ( int32_t  batch,
int32_t  depth,
int32_t  height,
int32_t  width 
)
inline

Construct FeatureShape object with four values of dimensions.

Parameters
[in]batchThe batch value
[in]depthThe depth value
[in]heightThe height value
[in]widthThe width value

Definition at line 63 of file Shape.h.

64 : N{batch}, C{depth}, H{height}, W{width}
65 {
66 // DO NOTHING
67 }

Field Documentation

◆ C

int32_t onert::ir::FeatureShape::C

◆ H

int32_t onert::ir::FeatureShape::H

◆ N

int32_t onert::ir::FeatureShape::N

◆ W

int32_t onert::ir::FeatureShape::W

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