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

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

#include <Shape.h>

Collaboration diagram for nnfw::misc::matrix::Shape:

Public Member Functions

 Shape ()=default
 Construct Shape object using default constrcutor.
 
 Shape (int32_t height, int32_t width)
 Construct Shape object with two values of dimensions.
 

Data Fields

int32_t H
 
int32_t W
 

Detailed Description

Structure to have values of dimensions for matrix.

Definition at line 38 of file Shape.h.

Constructor & Destructor Documentation

◆ Shape() [1/2]

nnfw::misc::matrix::Shape::Shape ( )
default

Construct Shape object using default constrcutor.

◆ Shape() [2/2]

nnfw::misc::matrix::Shape::Shape ( int32_t  height,
int32_t  width 
)
inline

Construct Shape object with two values of dimensions.

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

Definition at line 53 of file Shape.h.

53 : H{height}, W{width}
54 {
55 // DO NOTHING
56 }

Field Documentation

◆ H

int32_t nnfw::misc::matrix::Shape::H

The height value

Definition at line 40 of file Shape.h.

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

◆ W

int32_t nnfw::misc::matrix::Shape::W

The width value

Definition at line 41 of file Shape.h.

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


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