Skip to content

Commit

Permalink
Merge pull request #3471 from mrdaybird/fix_jacobian
Browse files Browse the repository at this point in the history
Fix JacobianTest and CustomJacobianTest (Resolves #3470)
  • Loading branch information
rcurtin committed Apr 28, 2023
2 parents 403099f + bdd6893 commit a7cc156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/mlpack/tests/ann/ann_test_tools.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ double JacobianTest(ModuleType& module,
derivTemp(i) = 1;

arma::mat delta(input.n_rows, input.n_cols);
module.Backward(input, deriv, delta);
module.Backward(output, deriv, delta);

jacobianB.col(i) = delta;
}
Expand Down Expand Up @@ -125,7 +125,7 @@ double CustomJacobianTest(ModuleType& module,
deriv(i) = 1;

arma::mat delta(input.n_rows, input.n_cols);
module.Backward(input, deriv, delta);
module.Backward(output, deriv, delta);

jacobianB.col(i) = delta;
}
Expand Down

0 comments on commit a7cc156

Please sign in to comment.