ONE - On-device Neural Engine
Loading...
Searching...
No Matches
AxisSpecifier Class Reference

A wrapper class for an integer number that specifies axis. More...

#include <ShapeQuery.h>

Public Member Functions

 AxisSpecifier (int32_t value)
 
int32_t value (void) const
 

Detailed Description

A wrapper class for an integer number that specifies axis.

Several Caffe layers includes 'axis' parameter (which may be negative) which specifies some axis required for operation.

Here are several examples:

AxisSpecifier class is introduced to distinguish this 'axis' parameter from other integers (to prevent possible mistake).

Definition at line 37 of file ShapeQuery.h.

Constructor & Destructor Documentation

◆ AxisSpecifier()

AxisSpecifier::AxisSpecifier ( int32_t  value)
inlineexplicit

Definition at line 40 of file ShapeQuery.h.

40 : _value{value}
41 {
42 // DO NOTHING
43 }
int32_t value(void) const
Definition ShapeQuery.h:46

Member Function Documentation

◆ value()

int32_t AxisSpecifier::value ( void  ) const
inline

Definition at line 46 of file ShapeQuery.h.

46{ return _value; }

Referenced by ShapeQuery::axis().


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