ONE - On-device Neural Engine
|
#include <TensorPackEnumerator.h>
Public Member Functions | |
TensorPackEnumerator ()=default | |
void | shape (const loco::TensorShape &si, const loco::TensorShape &so) |
void | axis (uint32_t axis) |
void | start (void) |
bool | valid (void) |
void | advance (void) |
uint32_t | inp_num (void) const |
uint32_t | inp_element (void) const |
uint32_t | out_element (void) const |
Definition at line 29 of file TensorPackEnumerator.h.
|
default |
void moco::TensorPackEnumerator::advance | ( | void | ) |
Definition at line 88 of file TensorPackEnumerator.cpp.
|
inline |
Definition at line 36 of file TensorPackEnumerator.h.
References axis().
Referenced by axis().
uint32_t moco::TensorPackEnumerator::inp_element | ( | void | ) | const |
Definition at line 110 of file TensorPackEnumerator.cpp.
uint32_t moco::TensorPackEnumerator::inp_num | ( | void | ) | const |
Definition at line 108 of file TensorPackEnumerator.cpp.
uint32_t moco::TensorPackEnumerator::out_element | ( | void | ) | const |
Definition at line 122 of file TensorPackEnumerator.cpp.
void moco::TensorPackEnumerator::shape | ( | const loco::TensorShape & | si, |
const loco::TensorShape & | so | ||
) |
Definition at line 24 of file TensorPackEnumerator.cpp.
References loco::TensorShape::rank().
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().
void moco::TensorPackEnumerator::start | ( | void | ) |
Definition at line 52 of file TensorPackEnumerator.cpp.
References loco::TensorShape::dim(), and loco::Dimension::value().
bool moco::TensorPackEnumerator::valid | ( | void | ) |
Definition at line 75 of file TensorPackEnumerator.cpp.