ONE - On-device Neural Engine
|
#include <PermutingCodec.h>
Public Member Functions | |
PermutingEncoder ()=default | |
PermutingEncoder (const Permutation< Domain::Feature > &perm) | |
bool | valid (void) const |
FeatureShape | shape (const TensorShape &tensor_shape) const override |
TensorIndex | value (const FeatureIndex &index) const override |
std::unique_ptr< FeatureEncoder > | clone (void) const override |
const Permutation< Domain::Feature > * | perm (void) const |
Permutation< Domain::Feature > * | perm (void) |
void | perm (const Permutation< Domain::Feature > &p) |
Public Member Functions inherited from loco::FeatureEncoder | |
virtual | ~FeatureEncoder ()=default |
Definition at line 76 of file PermutingCodec.h.
|
default |
|
inline |
Definition at line 82 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::FeatureEncoder.
Definition at line 139 of file PermutingCodec.cpp.
|
inline |
Definition at line 99 of file PermutingCodec.h.
|
inline |
Definition at line 98 of file PermutingCodec.h.
|
inline |
Definition at line 97 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::FeatureEncoder.
Definition at line 109 of file PermutingCodec.cpp.
References loco::Count, loco::FeatureShape::count(), loco::Depth, loco::FeatureShape::depth(), loco::TensorShape::dim(), loco::Height, loco::FeatureShape::height(), loco::valid(), loco::Width, and loco::FeatureShape::width().
Referenced by RandomDataGenerator.RandomDataGenerator::_gen_float32(), RandomDataGenerator.RandomDataGenerator::_gen_int16(), and RandomDataGenerator.RandomDataGenerator::_gen_uint8().
bool loco::PermutingEncoder< Domain::Feature >::valid | ( | void | ) | const |
Definition at line 144 of file PermutingCodec.cpp.
|
overridevirtual |
Implements loco::FeatureEncoder.
Definition at line 123 of file PermutingCodec.cpp.
References nncc::core::ADT::tensor::Index::at(), loco::FeatureIndex::batch(), loco::FeatureIndex::channel(), loco::FeatureIndex::column(), loco::Count, loco::Depth, loco::Height, nncc::core::ADT::tensor::Index::resize(), loco::FeatureIndex::row(), loco::valid(), and loco::Width.