ONE - On-device Neural Engine
Loading...
Searching...
No Matches
loco::MatrixShape Class Referencefinal

Matrix Shape. More...

#include <MatrixShape.h>

Public Member Functions

 MatrixShape ()=default
 
const Dimensionheight (void) const
 
Dimensionheight (void)
 
const Dimensionwidth (void) const
 
Dimensionwidth (void)
 

Detailed Description

Matrix Shape.

This class describes the shape of matrix, which serves as the input/output of matrix operations (e.g. Matrix Multiplication).

Each matrix is a collection of 2D features conceptually. Each matrix has height, width.

height() refers to the height of matrix in a given matrix width() refers to the width of matrix in a given matrix

Definition at line 37 of file MatrixShape.h.

Constructor & Destructor Documentation

◆ MatrixShape()

loco::MatrixShape::MatrixShape ( )
default

Member Function Documentation

◆ height() [1/2]

Dimension & loco::MatrixShape::height ( void  )
inline

Definition at line 44 of file MatrixShape.h.

44{ return _height; }

◆ height() [2/2]

const Dimension & loco::MatrixShape::height ( void  ) const
inline

◆ width() [1/2]

Dimension & loco::MatrixShape::width ( void  )
inline

Definition at line 47 of file MatrixShape.h.

47{ return _width; }

◆ width() [2/2]

const Dimension & loco::MatrixShape::width ( void  ) const
inline

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