ONE - On-device Neural Engine
|
Describe how to build a tensor from a (convolution) feature map. More...
#include <FeatureCodec.h>
Public Member Functions | |
virtual | ~FeatureDecoder ()=default |
virtual TensorShape | shape (const FeatureShape &) const =0 |
virtual FeatureIndex | value (const TensorIndex &) const =0 |
virtual std::unique_ptr< FeatureDecoder > | clone (void) const =0 |
Describe how to build a tensor from a (convolution) feature map.
Let us assume that "dec" is a feature decoder.
Given a feature map "inp" and its shape "inp.shape", "dec" builds a tensor "out" as follows:
for each valid tensor index (referred to as tensor_index below) for dec.shape(inp.shape) out.at(tensor_index) = inp.at(dec.value(tensor_index))
NOTE "inp" is a feature value and "out" is a tensor value in this example.
Definition at line 67 of file FeatureCodec.h.
|
virtualdefault |
|
pure virtual |
Implemented in loco::PermutingDecoder< Domain::Feature >.
|
pure virtual |
|
pure virtual |
Implemented in loco::PermutingDecoder< Domain::Feature >.