ONE - On-device Neural Engine
Loading...
Searching...
No Matches
nnfw::misc::feature::Shape Struct Reference

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

#include <Shape.h>

Collaboration diagram for nnfw::misc::feature::Shape:

Public Member Functions

 Shape ()=default
 Construct Shape object using default constrcutor.
 
 Shape (int32_t depth, int32_t height, int32_t width)
 Construct Shape object with three values of dimensions.
 
 Shape (int32_t batch, int32_t depth, int32_t height, int32_t width)
 Construct Shape 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 38 of file Shape.h.

Constructor & Destructor Documentation

◆ Shape() [1/3]

nnfw::misc::feature::Shape::Shape ( )
default

Construct Shape object using default constrcutor.

◆ Shape() [2/3]

nnfw::misc::feature::Shape::Shape ( int32_t  depth,
int32_t  height,
int32_t  width 
)
inline

Construct Shape object with three values of dimensions.

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

Definition at line 55 of file Shape.h.

55 : N{1}, C{depth}, H{height}, W{width}
56 {
57 // DO NOTHING
58 }

◆ Shape() [3/3]

nnfw::misc::feature::Shape::Shape ( int32_t  batch,
int32_t  depth,
int32_t  height,
int32_t  width 
)
inline

Construct Shape 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 66 of file Shape.h.

67 : N{batch}, C{depth}, H{height}, W{width}
68 {
69 // DO NOTHING
70 }

Field Documentation

◆ C

int32_t nnfw::misc::feature::Shape::C

The depth value

Definition at line 41 of file Shape.h.

Referenced by nnfw::misc::feature::IndexIterator::iter(), and nnfw::misc::feature::Object< T >::Object().

◆ H

int32_t nnfw::misc::feature::Shape::H

The height value

Definition at line 42 of file Shape.h.

Referenced by nnfw::misc::feature::IndexIterator::iter(), and nnfw::misc::feature::Object< T >::Object().

◆ N

int32_t nnfw::misc::feature::Shape::N

The batch value

Definition at line 40 of file Shape.h.

Referenced by nnfw::misc::feature::IndexIterator::iter().

◆ W

int32_t nnfw::misc::feature::Shape::W

The width value

Definition at line 43 of file Shape.h.

Referenced by nnfw::misc::feature::IndexIterator::iter(), and nnfw::misc::feature::Object< T >::Object().


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