Call the intended method in MLPPActivation::cosh_normm().

This commit is contained in:
Relintai 2023-12-27 22:36:48 +01:00
parent 32badc7aee
commit bb999b9ba2

View File

@ -2033,7 +2033,7 @@ Ref<MLPPVector> MLPPActivation::cosh_normv(const Ref<MLPPVector> &z) {
}
Ref<MLPPMatrix> MLPPActivation::cosh_normm(const Ref<MLPPMatrix> &z) {
MLPPLinAlg alg;
return alg.scalar_multiplynm(0.5, alg.additionnv(alg.expnm(z), alg.expnm(alg.scalar_multiplynm(-1, z))));
return alg.scalar_multiplynm(0.5, alg.additionnm(alg.expnm(z), alg.expnm(alg.scalar_multiplynm(-1, z))));
}
real_t MLPPActivation::cosh_derivr(real_t z) {