ONE - On-device Neural Engine
|
#include <BinaryArithmeticLayer.h>
Public Member Functions | |
BinaryArithmeticLayer () | |
void | configure (const IPortableTensor *lhs, const IPortableTensor *rhs, IPortableTensor *output, const ir::Activation activation, const ArithmeticType arithmetic_type) |
void | run () override |
Public Member Functions inherited from onert::exec::IFunction | |
virtual | ~IFunction ()=default |
virtual void | prepare () |
Protected Attributes | |
const IPortableTensor * | _lhs |
const IPortableTensor * | _rhs |
IPortableTensor * | _output |
std::function< void(const IPortableTensor *, const IPortableTensor *, IPortableTensor *)> | _kernel |
Definition at line 42 of file BinaryArithmeticLayer.h.
|
inline |
Definition at line 45 of file BinaryArithmeticLayer.h.
void onert::backend::cpu::ops::BinaryArithmeticLayer::configure | ( | const IPortableTensor * | lhs, |
const IPortableTensor * | rhs, | ||
IPortableTensor * | output, | ||
const ir::Activation | activation, | ||
const ArithmeticType | arithmetic_type | ||
) |
Definition at line 186 of file BinaryArithmeticLayer.cc.
References _kernel, _lhs, _output, _rhs, onert::backend::IPortableTensor::data_type(), nnfw::cker::BinaryArithmeticOpParam::input2_multiplier, onert::backend::cpu::ops::kAdd, onert::backend::cpu::ops::kDiv, onert::backend::cpu::ops::kMul, and onert::backend::cpu::ops::kSub.
|
overridevirtual |
Implements onert::exec::IFunction.
Definition at line 283 of file BinaryArithmeticLayer.cc.
References _kernel, _lhs, _output, and _rhs.
Referenced by onert::backend::train::ops::BinaryArithmeticLayer::forward(), and package.infer.session::inference().
|
protected |
Definition at line 61 of file BinaryArithmeticLayer.h.
Referenced by configure(), and run().
|
protected |
Definition at line 57 of file BinaryArithmeticLayer.h.
Referenced by onert::backend::train::ops::BinaryArithmeticLayer::backward(), configure(), and run().
|
protected |
Definition at line 59 of file BinaryArithmeticLayer.h.
Referenced by onert::backend::train::ops::BinaryArithmeticLayer::backward(), configure(), onert::backend::train::ops::BinaryArithmeticLayer::configureBackward(), and run().
|
protected |
Definition at line 58 of file BinaryArithmeticLayer.h.
Referenced by onert::backend::train::ops::BinaryArithmeticLayer::backward(), configure(), and run().