23#ifndef __NNFW_MISC_FEATURE_INDEX_H__
24#define __NNFW_MISC_FEATURE_INDEX_H__
75 int32_t
batch(
void)
const {
return _batch; }
80 int32_t
ch(
void)
const {
return _ch; }
85 int32_t
row(
void)
const {
return _row; }
90 int32_t
col(
void)
const {
return _col; }
97 int32_t &
batch(
void) {
return _batch; }
102 int32_t &
ch(
void) {
return _ch; }
107 int32_t &
row(
void) {
return _row; }
112 int32_t &
col(
void) {
return _col; }
Class to have the index information for calculating the offset.
int32_t row(void) const
Get the height index.
int32_t & row(void)
Get the height index as the lvalue reference.
int32_t & col(void)
Get the width index as the lvalue reference.
int32_t & ch(void)
Get the depth index as the lvalue reference.
int32_t col(void) const
Get the width index.
Index(int32_t batch, int32_t ch, int32_t row, int32_t col)
Construct Index object with four indexes of dimensions.
Index()=default
Construct Index object using default constrcutor.
int32_t & batch(void)
Get the batch index as the lvalue reference.
int32_t ch(void) const
Get the depth index.
Index(int32_t ch, int32_t row, int32_t col)
Construct Index object with three indexes of dimensions.
int32_t batch(void) const
Get the batch index.