From 726d51ec58775bfe0b57efd1ac9fc6778167a358 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 27 Dec 2023 18:39:58 +0100 Subject: [PATCH] Fixed the order of the size parameters in MLPPActivation::sigmoid_normm(). --- mlpp/activation/activation.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mlpp/activation/activation.cpp b/mlpp/activation/activation.cpp index 6be0b6f..cc6f3cf 100644 --- a/mlpp/activation/activation.cpp +++ b/mlpp/activation/activation.cpp @@ -858,7 +858,7 @@ Ref MLPPActivation::sigmoid_normv(const Ref &z) { } Ref MLPPActivation::sigmoid_normm(const Ref &z) { MLPPLinAlg alg; - return alg.division_element_wisenvnm(alg.onematnm(z->size().x, z->size().y), alg.additionnm(alg.onematnm(z->size().x, z->size().y), alg.expnm(alg.scalar_multiplynm(-1, z)))); + return alg.division_element_wisenvnm(alg.onematnm(z->size().y, z->size().x), alg.additionnm(alg.onematnm(z->size().y, z->size().x), alg.expnm(alg.scalar_multiplynm(-1, z)))); } real_t MLPPActivation::sigmoid_derivr(real_t z) {