Skip to content

Commit 0d8bbb6

Browse files
committed
missing softplus at the LITE_WITH_PROFILE test=huawei_ascend_npu
1 parent 352dc1f commit 0d8bbb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lite/operators/activation_ops.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ class ActivationOp : public OpLite {
106106
case lite_api::ActivationType::kMish:
107107
ch->macs = param_.X->numel();
108108
break;
109+
case lite_api::ActivationType::kSoftPlus:
110+
ch->macs = param_.X->numel();
111+
break;
109112
default:
110113
LOG(FATAL) << "This Type of Activation:"
111114
<< static_cast<int>(param_.active_type)

0 commit comments

Comments
 (0)