ONE - On-device Neural Engine
|
#include <PermutingCodec.h>
Public Member Functions | |
PermutingDecoder ()=default | |
PermutingDecoder (const Permutation< Domain::Feature > &perm) | |
bool | valid (void) const |
TensorShape | shape (const FeatureShape &tensor_shape) const override |
FeatureIndex | value (const TensorIndex &index) const override |
std::unique_ptr< FeatureDecoder > | 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::FeatureDecoder | |
virtual | ~FeatureDecoder ()=default |
Definition at line 105 of file PermutingCodec.h.
|
default |
|
inline |
Definition at line 111 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::FeatureDecoder.
Definition at line 179 of file PermutingCodec.cpp.
|
inline |
Definition at line 128 of file PermutingCodec.h.
|
inline |
Definition at line 127 of file PermutingCodec.h.
|
inline |
Definition at line 126 of file PermutingCodec.h.
|
overridevirtual |
Implements loco::FeatureDecoder.
Definition at line 149 of file PermutingCodec.cpp.
References loco::Count, loco::FeatureShape::count(), loco::Depth, loco::FeatureShape::depth(), loco::TensorShape::dim(), loco::Height, loco::FeatureShape::height(), loco::TensorShape::rank(), 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::PermutingDecoder< Domain::Feature >::valid | ( | void | ) | const |
Definition at line 184 of file PermutingCodec.cpp.
|
overridevirtual |
Implements loco::FeatureDecoder.
Definition at line 165 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, loco::FeatureIndex::row(), loco::valid(), and loco::Width.