23 template <
typename A,
typename B,
typename C>
25 for (
size_t i = 0; i < etl::dim<0>(lhs); ++i) {
26 for (
size_t j = 0; j < etl::dim<1>(lhs); ++j) {
27 for (
size_t k = 0; k < etl::dim<2>(lhs); ++k) {
28 for (
size_t l = 0; l < etl::dim<3>(lhs); ++l) {
29 c(i, j, k, l) = lhs(i, j, k, l) + rhs(j);
42 template <
typename A,
typename B,
typename C>
44 for (
size_t i = 0; i < etl::dim<0>(lhs); ++i) {
45 for (
size_t j = 0; j < etl::dim<1>(lhs); ++j) {
46 c(i, j) = lhs(i, j) + rhs(j);
Definition: prob_pooling.hpp:10
bias_add_2d_expr< detail::build_type< E >, detail::build_type< B > > bias_add_2d(const E &x, const B &biases)
Returns the result of adding the bias [K] to the 4D matrix [N1, K, N2, N3].
Definition: bias_add_2d_expr.hpp:378
bias_add_4d_expr< detail::build_type< E >, detail::build_type< B > > bias_add_4d(const E &x, const B &biases)
Returns the result of adding the bias [K] to the 4D matrix [N1, K, N2, N3].
Definition: bias_add_4d_expr.hpp:388