summaryrefslogtreecommitdiff
path: root/compiler/luci/pass/src/PropagateQParamForwardPass.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/luci/pass/src/PropagateQParamForwardPass.cpp')
-rw-r--r--compiler/luci/pass/src/PropagateQParamForwardPass.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/compiler/luci/pass/src/PropagateQParamForwardPass.cpp b/compiler/luci/pass/src/PropagateQParamForwardPass.cpp
index 003e4c293..aaadb2864 100644
--- a/compiler/luci/pass/src/PropagateQParamForwardPass.cpp
+++ b/compiler/luci/pass/src/PropagateQParamForwardPass.cpp
@@ -138,13 +138,18 @@ struct PropagateQParamForward final : public luci::CircleNodeMutableVisitor<bool
auto qtype = luci::activation_qtype(input_node);
switch (qtype)
{
- case luci::ActivationQType::PreDefinedValue:
- node->quantparam(luci::make_predefined_qparam(input_node->opcode(), node->dtype()));
+ case luci::ActivationQType::PreDefinedLogistic:
+ case luci::ActivationQType::PreDefinedTanh:
+ case luci::ActivationQType::PreDefinedSoftmax:
+ node->quantparam(luci::make_predefined_qparam(qtype, node->dtype()));
break;
case luci::ActivationQType::IntScale:
luci::set_int_scale(node);
break;
default:
+ // This assert ensures this switch-satement handles all ActivationQTypes
+ // TODO Find a better design to remove coupling with ActivationQType
+ assert(qtype == luci::ActivationQType::MinMax);
break;
}