ONE - On-device Neural Engine
|
#include <LogSoftMaxLayer.h>
Public Member Functions | |
LogSoftMaxLayer () | |
void | logsoftmaxFloat32 () |
void | logsoftmaxQuant8 () |
void | configure (const IPortableTensor *input, const float beta, const int axis, IPortableTensor *output) |
void | run () |
void | PopulateLookupTable (const float kBeta) |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Definition at line 33 of file LogSoftMaxLayer.h.
onert::backend::cpu::ops::LogSoftMaxLayer::LogSoftMaxLayer | ( | ) |
Definition at line 32 of file LogSoftMaxLayer.cc.
void onert::backend::cpu::ops::LogSoftMaxLayer::configure | ( | const IPortableTensor * | input, |
const float | beta, | ||
const int | axis, | ||
IPortableTensor * | output | ||
) |
Definition at line 69 of file LogSoftMaxLayer.cc.
References onert::backend::IPortableTensor::data_type(), and PopulateLookupTable().
void onert::backend::cpu::ops::LogSoftMaxLayer::logsoftmaxFloat32 | ( | ) |
Definition at line 47 of file LogSoftMaxLayer.cc.
References nnfw::cker::SoftmaxParams::axis, nnfw::cker::SoftmaxParams::beta, onert::backend::cpu::ops::getShape(), and nnfw::cker::LogSoftmax().
Referenced by run().
void onert::backend::cpu::ops::LogSoftMaxLayer::logsoftmaxQuant8 | ( | ) |
Definition at line 56 of file LogSoftMaxLayer.cc.
References nnfw::cker::SoftmaxParams::axis, nnfw::cker::SoftmaxParams::beta, onert::backend::IPortableTensor::data_scale(), onert::backend::IPortableTensor::data_zero_point(), onert::backend::cpu::ops::getShape(), nnfw::cker::LogSoftmax(), nnfw::cker::SoftmaxParams::scale, nnfw::cker::SoftmaxParams::table, and nnfw::cker::SoftmaxParams::zero_point.
Referenced by run().
void onert::backend::cpu::ops::LogSoftMaxLayer::PopulateLookupTable | ( | const float | kBeta | ) |
Definition at line 37 of file LogSoftMaxLayer.cc.
References onert::backend::IPortableTensor::data_scale().
Referenced by configure().
|
virtual |
Implements onert::exec::IFunction.
Definition at line 82 of file LogSoftMaxLayer.cc.
References onert::backend::IPortableTensor::data_type(), logsoftmaxFloat32(), and logsoftmaxQuant8().
Referenced by package.infer.session::inference().