ONE - On-device Neural Engine
|
#include <SoftMaxLayer.h>
Public Member Functions | |
SoftMaxLayer () | |
void | softmaxFloat32 () |
template<typename T > | |
void | softmaxQuant8 () |
void | configure (const IPortableTensor *input, const float beta, IPortableTensor *output) |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Protected Attributes | |
const IPortableTensor * | _input |
IPortableTensor * | _output |
Definition at line 33 of file SoftMaxLayer.h.
onert::backend::cpu::ops::SoftMaxLayer::SoftMaxLayer | ( | ) |
Definition at line 32 of file SoftMaxLayer.cc.
void onert::backend::cpu::ops::SoftMaxLayer::configure | ( | const IPortableTensor * | input, |
const float | beta, | ||
IPortableTensor * | output | ||
) |
Definition at line 88 of file SoftMaxLayer.cc.
References _input, _output, onert::backend::IPortableTensor::data_scale(), onert::backend::IPortableTensor::data_type(), and nnfw::cker::PopulateSoftmaxLookupTable().
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 109 of file SoftMaxLayer.cc.
References _input, onert::backend::IPortableTensor::data_type(), and softmaxFloat32().
Referenced by onert::backend::train::ops::SoftMaxLayer::forward(), and package.infer.session::inference().
void onert::backend::cpu::ops::SoftMaxLayer::softmaxFloat32 | ( | ) |
Definition at line 37 of file SoftMaxLayer.cc.
References _input, _output, nnfw::cker::SoftmaxParams::beta, getNumberOfDimensions(), getNumberOfElements(), onert::backend::cpu::ops::getShape(), getSizeOfDimension(), nnfw::cker::Softmax(), and nnfw::cker::reference::Softmax().
Referenced by run().
void onert::backend::cpu::ops::SoftMaxLayer::softmaxQuant8 | ( | ) |
Definition at line 70 of file SoftMaxLayer.cc.
References _input, _output, onert::backend::IPortableTensor::data_scale(), onert::backend::IPortableTensor::data_zero_point(), onert::backend::cpu::ops::getShape(), nnfw::cker::SoftmaxParams::scale, nnfw::cker::SoftmaxParams::table, nnfw::cker::SoftmaxParams::uint8_table1, nnfw::cker::SoftmaxParams::uint8_table2, and nnfw::cker::SoftmaxParams::zero_point.
|
protected |
Definition at line 48 of file SoftMaxLayer.h.
Referenced by onert::backend::train::ops::SoftMaxLayer::backward(), configure(), run(), softmaxFloat32(), and softmaxQuant8().
|
protected |
Definition at line 49 of file SoftMaxLayer.h.
Referenced by onert::backend::train::ops::SoftMaxLayer::backward(), configure(), softmaxFloat32(), and softmaxQuant8().