Skip to content

Commit d9319ad

Browse files
committed
remove rev/core/set_zero_adjoints.hpp
1 parent ed3ce3a commit d9319ad

2 files changed

Lines changed: 4 additions & 50 deletions

File tree

stan/math/rev/core/collect_adjoints.hpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ inline void collect_adjoints(Output& output, Input&& input) {
4949
} else {
5050
static_assert(
5151
sizeof(std::decay_t<output_i_t>*) == 0,
52-
"INTERNAL ERROR:(laplace_marginal_lpdf) collect_adjoints was "
52+
"INTERNAL ERROR: collect_adjoints was "
5353
"not able to deduce the actions needed for the given type. "
5454
"This is an internal error, please report it: "
5555
"https://github.com/stan-dev/math/issues");
@@ -85,7 +85,7 @@ inline void collect_adjoints(Output&& output, Input&& input) {
8585
} else {
8686
static_assert(
8787
sizeof(std::decay_t<output_i_t>*) == 0,
88-
"INTERNAL ERROR:(laplace_marginal_lpdf) collect_adjoints was "
88+
"INTERNAL ERROR: collect_adjoints was "
8989
"not able to deduce the actions needed for the given type. "
9090
"This is an internal error, please report it: "
9191
"https://github.com/stan-dev/math/issues");
@@ -106,9 +106,8 @@ template <typename Output, typename Input>
106106
inline void collect_adjoints(Output&& output, const vari* ret, Input&& input) {
107107
if constexpr (is_tuple_v<Output>) {
108108
static_assert(sizeof(std::decay_t<Output>*) == 0,
109-
"INTERNAL ERROR:(laplace_marginal_lpdf) "
110-
"Accumulate Adjoints called on a tuple, but tuples cannot be "
111-
"on the reverse mode stack! "
109+
"INTERNAL ERROR: collect_adjoints was "
110+
"not able to deduce the actions needed for the given type. "
112111
"This is an internal error, please report it: "
113112
"https://github.com/stan-dev/math/issues");
114113
} else if constexpr (is_std_vector_v<Output>) {

stan/math/rev/core/set_zero_adjoints.hpp

Lines changed: 0 additions & 45 deletions
This file was deleted.

0 commit comments

Comments
 (0)