Fix infinite recursion.

This commit is contained in:
Relintai 2023-02-03 02:26:35 +01:00
parent 5c7840850b
commit 567808a939

View File

@ -1057,7 +1057,7 @@ Ref<MLPPVector> MLPPActivation::adj_softmax_derivv(const Ref<MLPPVector> &z) {
Ref<MLPPVector> n = alg.scalar_addnv(c, z);
return adj_softmax_derivv(n);
return adj_softmax_normv(n);
}
Ref<MLPPMatrix> MLPPActivation::adj_softmax_derivm(const Ref<MLPPMatrix> &z) {
MLPPLinAlg alg;