@@ -314,7 +314,9 @@ inline void set_zero_adjoint(Output&& output) {
314
314
static_assert (
315
315
sizeof (std::decay_t <output_i_t >*) == 0 ,
316
316
" INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
317
- " not able to deduce the actions needed for the given type." );
317
+ " not able to deduce the actions needed for the given type. "
318
+ " This is an internal error, please report it: "
319
+ " https://github.com/stan-dev/math/issues" );
318
320
}
319
321
},
320
322
std::forward<Output>(output));
@@ -359,7 +361,9 @@ inline void collect_adjoints(Output& output, Input&& input) {
359
361
static_assert (
360
362
sizeof (std::decay_t <output_i_t >*) == 0 ,
361
363
" INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
362
- " not able to deduce the actions needed for the given type." );
364
+ " not able to deduce the actions needed for the given type. "
365
+ " This is an internal error, please report it: "
366
+ " https://github.com/stan-dev/math/issues" );
363
367
}
364
368
},
365
369
std::forward<Output>(output), std::forward<Input>(input));
@@ -813,7 +817,9 @@ inline void collect_adjoints(Output&& output, Input&& input) {
813
817
static_assert (
814
818
sizeof (std::decay_t <output_i_t >*) == 0 ,
815
819
" INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
816
- " not able to deduce the actions needed for the given type." );
820
+ " not able to deduce the actions needed for the given type. "
821
+ " This is an internal error, please report it: "
822
+ " https://github.com/stan-dev/math/issues" );
817
823
}
818
824
},
819
825
std::forward<Output>(output), std::forward<Input>(input));
@@ -863,7 +869,9 @@ inline void copy_compute_s2(Output&& output, Input&& input) {
863
869
static_assert (
864
870
sizeof (std::decay_t <output_i_t >*) == 0 ,
865
871
" INTERNAL ERROR:(laplace_marginal_lpdf) set_zero_adjoints was "
866
- " not able to deduce the actions needed for the given type." );
872
+ " not able to deduce the actions needed for the given type. "
873
+ " This is an internal error, please report it: "
874
+ " https://github.com/stan-dev/math/issues" );
867
875
}
868
876
},
869
877
std::forward<Output>(output), std::forward<Input>(input));
@@ -920,11 +928,11 @@ template <typename Output, typename Input>
920
928
inline void collect_adjoints (Output&& output, const vari* ret, Input&& input) {
921
929
if constexpr (is_tuple_v<Output>) {
922
930
static_assert (sizeof (std::decay_t <Output>*) == 0 ,
923
- " INTERNAL ERROR:(laplace_marginal_lpdf)"
931
+ " INTERNAL ERROR:(laplace_marginal_lpdf) "
924
932
" Accumulate Adjoints called on a tuple, but tuples cannot be "
925
- " on the reverse mode stack!"
926
- " This is an internal error, please report it to the stan "
927
- " github as an issue. " );
933
+ " on the reverse mode stack! "
934
+ " This is an internal error, please report it: "
935
+ " https:// github.com/stan-dev/math/issues " );
928
936
} else if constexpr (is_std_vector_v<Output>) {
929
937
if constexpr (!is_var_v<value_type_t <Output>>) {
930
938
const auto output_size = output.size ();
0 commit comments