mirror of
https://github.com/Relintai/pmlpp.git
synced 2025-04-10 02:42:38 +02:00
Fix infinite recursion.
This commit is contained in:
parent
5c7840850b
commit
567808a939
@ -1057,7 +1057,7 @@ Ref<MLPPVector> MLPPActivation::adj_softmax_derivv(const Ref<MLPPVector> &z) {
|
|||||||
|
|
||||||
Ref<MLPPVector> n = alg.scalar_addnv(c, 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) {
|
Ref<MLPPMatrix> MLPPActivation::adj_softmax_derivm(const Ref<MLPPMatrix> &z) {
|
||||||
MLPPLinAlg alg;
|
MLPPLinAlg alg;
|
||||||
|
Loading…
Reference in New Issue
Block a user