Skip to content

Commit 873012f

Browse files
author
Jouni Helske
committed
fix fwd tests (remove const)
1 parent 3cc61f5 commit 873012f

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

test/unit/math/rev/fun/log_softmax_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ TEST(AgradRev, log_softmax_negative_infinity_has_finite_adjoint) {
7373

7474
var_value<Eigen::VectorXd> x(v);
7575

76-
const auto y = log_softmax(x);
76+
auto y = log_softmax(x);
7777
sum(y).grad();
7878

7979
const double e1 = std::exp(1.0);

test/unit/math/rev/fun/log_sum_exp_test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ TEST(AgradRev, log_sum_exp_negative_infinity_has_zero_adjoint) {
7373

7474
var_value<Eigen::VectorXd> x(v);
7575

76-
const auto y = log_sum_exp(x);
76+
auto y = log_sum_exp(x);
7777
y.grad();
7878

7979
const double e1 = std::exp(1.0);

0 commit comments

Comments
 (0)