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 |
![]() | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Protected Attributes | |
const IPortableTensor * | _input |
IPortableTensor * | _output |
Definition at line 27 of file SoftMaxLayer.h.
onert::backend::cpu::ops::SoftMaxLayer::SoftMaxLayer | ( | ) |
Definition at line 26 of file SoftMaxLayer.cc.
void onert::backend::cpu::ops::SoftMaxLayer::configure | ( | const IPortableTensor * | input, |
const float | beta, | ||
IPortableTensor * | output | ||
) |
Definition at line 82 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 103 of file SoftMaxLayer.cc.
References _input, onert::backend::IPortableTensor::data_type(), and softmaxFloat32().
Referenced by onert::backend::train::ops::SoftMaxLayer::forward().
void onert::backend::cpu::ops::SoftMaxLayer::softmaxFloat32 | ( | ) |
Definition at line 31 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 64 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 42 of file SoftMaxLayer.h.
Referenced by onert::backend::train::ops::SoftMaxLayer::backward(), configure(), run(), softmaxFloat32(), and softmaxQuant8().
|
protected |
Definition at line 43 of file SoftMaxLayer.h.
Referenced by onert::backend::train::ops::SoftMaxLayer::backward(), configure(), softmaxFloat32(), and softmaxQuant8().