@@ -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>
106106inline 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>) {
0 commit comments