Skip to content

Commit

Permalink
fix selu
Browse files Browse the repository at this point in the history
  • Loading branch information
nihui committed Aug 27, 2024
1 parent ad9d977 commit 7a3e9bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/layer/riscv/selu_riscv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ int SELU_riscv::forward_inplace(Mat& bottom_top_blob, const Option& opt) const

_p = __riscv_vfmul_vf_f32m8_mu(_higher, _p, _p, lambda, vl);
vfloat32m8_t _nps = exp_ps(_p, vl);
_nps = __riscv_vfsub_vf_f32m8_mu(_lower, _nps, _nps, 1.f, vl);
_nps = __riscv_vfmul_vf_f32m8_mu(_lower, _nps, _nps, alphaxlambda, vl);
_nps = __riscv_vfsub_vf_f32m8_mu(_lower, _p, _nps, 1.f, vl);
_nps = __riscv_vfmul_vf_f32m8_mu(_lower, _p, _nps, alphaxlambda, vl);

__riscv_vse32_v_f32m8(ptr, _nps, vl);
ptr += vl;
Expand Down

0 comments on commit 7a3e9bd

Please sign in to comment.