ONE - On-device Neural Engine
|
Quantize non-const activaion using pre-defined scale/zp for special Ops. More...
#include <QuantizeActivation.h>
Public Member Functions | |
QuantizeSpecialActivation (loco::DataType output) | |
void | visit (luci::CircleNode *node) |
Default fallback. | |
void | visit (luci::CircleLogistic *node) |
void | visit (luci::CircleTanh *node) |
void | visit (luci::CircleSoftmax *node) |
void | visit (luci::CircleFloor *node) |
void | visit (luci::CircleFloorDiv *node) |
void | visit (luci::CircleFloorMod *node) |
void | visit (luci::CircleCeil *node) |
Public Member Functions inherited from luci::CircleNodeMutableVisitor< void > | |
virtual | ~CircleNodeMutableVisitor ()=default |
Public Member Functions inherited from luci::CircleNodeMutableVisitorBase< T > | |
virtual | ~CircleNodeMutableVisitorBase ()=default |
Data Fields | |
loco::DataType | output_type |
Quantize non-const activaion using pre-defined scale/zp for special Ops.
Definition at line 41 of file QuantizeActivation.h.
|
inline |
Definition at line 43 of file QuantizeActivation.h.
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleCeil * | node | ) |
Definition at line 158 of file QuantizeActivation.cpp.
References luci::activation_qtype(), luci::IntScale, and luci::set_int_scale().
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleFloor * | node | ) |
Definition at line 140 of file QuantizeActivation.cpp.
References luci::activation_qtype(), luci::IntScale, and luci::set_int_scale().
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleFloorDiv * | node | ) |
Definition at line 146 of file QuantizeActivation.cpp.
References luci::activation_qtype(), luci::IntScale, and luci::set_int_scale().
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleFloorMod * | node | ) |
Definition at line 152 of file QuantizeActivation.cpp.
References luci::activation_qtype(), luci::IntScale, and luci::set_int_scale().
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleLogistic * | node | ) |
Definition at line 119 of file QuantizeActivation.cpp.
References luci::make_predefined_qparam(), output_type, luci::PreDefinedLogistic, and luci::CircleNode::quantparam().
|
virtual |
Default fallback.
Reimplemented from luci::CircleNodeMutableVisitor< void >.
Definition at line 107 of file QuantizeActivation.cpp.
References luci::make_predefined_qparam(), output_type, luci::PreDefinedTanh, luci::CircleNode::quantparam(), and luci::TANH.
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleSoftmax * | node | ) |
Definition at line 133 of file QuantizeActivation.cpp.
References luci::make_predefined_qparam(), output_type, luci::PreDefinedSoftmax, and luci::CircleNode::quantparam().
void luci::QuantizeSpecialActivation::visit | ( | luci::CircleTanh * | node | ) |
Definition at line 126 of file QuantizeActivation.cpp.
References luci::make_predefined_qparam(), output_type, luci::PreDefinedTanh, and luci::CircleNode::quantparam().
loco::DataType luci::QuantizeSpecialActivation::output_type |