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

Structure to Shape. More...

#include <Shape.h>

Collaboration diagram for nnfw::misc::kernel::Shape:

Public Member Functions

 Shape ()=default
 Construct a new Shape object as default.
 
 Shape (int32_t count, int32_t depth, int32_t height, int32_t width)
 Construct a new Shape object with parameters.
 

Data Fields

int32_t N
 
int32_t C
 
int32_t H
 
int32_t W
 

Detailed Description

Structure to Shape.

Definition at line 38 of file Shape.h.

Constructor & Destructor Documentation

◆ Shape() [1/2]

nnfw::misc::kernel::Shape::Shape ( )
default

Construct a new Shape object as default.

◆ Shape() [2/2]

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

Construct a new Shape object with parameters.

Parameters
[in]countThe kernel index
[in]depthThe channel index
[in]heightThe height index
[in]widthThe width index

Definition at line 57 of file Shape.h.

58 : N{count}, C{depth}, H{height}, W{width}
59 {
60 // DO NOTHING
61 }

Field Documentation

◆ C

int32_t nnfw::misc::kernel::Shape::C

The channel index

Definition at line 41 of file Shape.h.

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

◆ H

int32_t nnfw::misc::kernel::Shape::H

The height index

Definition at line 42 of file Shape.h.

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

◆ N

int32_t nnfw::misc::kernel::Shape::N

The kernel index

Definition at line 40 of file Shape.h.

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

◆ W

int32_t nnfw::misc::kernel::Shape::W

The width index

Definition at line 43 of file Shape.h.

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


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