Expression Templates Library (ETL)
Static Public Member Functions | List of all members
etl::impl::standard::avg_pool_upsample_3d Struct Reference

Functor for the derivative of 3D Avg Pooling. More...

#include <avg_pooling_upsample.hpp>

Static Public Member Functions

template<size_t C1, size_t C2, size_t C3, typename C , typename M >
static void pool_block_3d (const C &errors, M &m, size_t i, size_t j, size_t k)
 Pool a 3D block of the sub expression. More...
 
template<size_t C1, size_t C2, size_t C3, typename C , typename M >
static void pool_block_4d (const C &errors, M &m, size_t n, size_t i, size_t j, size_t k)
 Pool a 4D block of the sub expression. More...
 
template<typename C , typename M >
static void pool_block_3d (const C &errors, M &m, size_t i, size_t j, size_t k, size_t c1, size_t c2, size_t c3)
 Pool a 3D block of the sub expression. More...
 
template<typename C , typename M >
static void pool_block_4d (const C &errors, M &m, size_t n, size_t i, size_t j, size_t k, size_t c1, size_t c2, size_t c3)
 Pool a 4D block of the sub expression. More...
 
template<size_t C1, size_t C2, size_t C3, etl_3d A, typename B , typename C , typename M >
static void apply ([[maybe_unused]] A &&in, [[maybe_unused]] B &&out, C &&errors, M &&m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_3d A, typename B , typename C , typename M >
static void apply ([[maybe_unused]] A &&in, [[maybe_unused]] B &&out, C &&errors, M &&m, size_t c1, size_t c2, size_t c3)
 Apply the functor on sub and store the result in m. More...
 
template<size_t C1, size_t C2, size_t C3, etl_4d A, typename B , typename C , typename M >
static void apply ([[maybe_unused]] A &&in, [[maybe_unused]] B &&out, C &&errors, M &m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_4d A, typename B , typename C , typename M >
static void apply ([[maybe_unused]] A &&in, [[maybe_unused]] B &&out, C &&errors, M &m, size_t c1, size_t c2, size_t c3)
 Apply the functor on sub and store the result in m. More...
 
template<size_t C1, size_t C2, size_t C3, etl_5d_and_plus A, typename B , typename C , typename M >
static void apply (A &&in, B &&out, C &&errors, M &m)
 Apply the functor on sub and store the result in m. More...
 
template<etl_5d_and_plus A, typename B , typename C , typename M >
static void apply (A &&in, B &&out, C &&errors, M &m, size_t c1, size_t c2, size_t c3)
 Apply the functor on sub and store the result in m. More...
 

Detailed Description

Functor for the derivative of 3D Avg Pooling.

Member Function Documentation

◆ apply() [1/6]

template<size_t C1, size_t C2, size_t C3, etl_3d A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( [[maybe_unused] ] A &&  in,
[[maybe_unused] ] B &&  out,
C &&  errors,
M &&  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
C3The third dimension pooling ratio

◆ apply() [2/6]

template<etl_3d A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( [[maybe_unused] ] A &&  in,
[[maybe_unused] ] B &&  out,
C &&  errors,
M &&  m,
size_t  c1,
size_t  c2,
size_t  c3 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio
c3The third dimension pooling ratio

◆ apply() [3/6]

template<size_t C1, size_t C2, size_t C3, etl_4d A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( [[maybe_unused] ] A &&  in,
[[maybe_unused] ] B &&  out,
C &&  errors,
M &  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
C3The third dimension pooling ratio

◆ apply() [4/6]

template<etl_4d A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( [[maybe_unused] ] A &&  in,
[[maybe_unused] ] B &&  out,
C &&  errors,
M &  m,
size_t  c1,
size_t  c2,
size_t  c3 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio
c3The third dimension pooling ratio

◆ apply() [5/6]

template<size_t C1, size_t C2, size_t C3, etl_5d_and_plus A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( A &&  in,
B &&  out,
C &&  errors,
M &  m 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
C3The third dimension pooling ratio

◆ apply() [6/6]

template<etl_5d_and_plus A, typename B , typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::apply ( A &&  in,
B &&  out,
C &&  errors,
M &  m,
size_t  c1,
size_t  c2,
size_t  c3 
)
inlinestatic

Apply the functor on sub and store the result in m.

Parameters
inThe sub expression
mThe storage matrix
c1The first dimension pooling ratio
c2The second dimension pooling ratio
c3The third dimension pooling ratio

◆ pool_block_3d() [1/2]

template<size_t C1, size_t C2, size_t C3, typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::pool_block_3d ( const C &  errors,
M &  m,
size_t  i,
size_t  j,
size_t  k 
)
inlinestatic

Pool a 3D block of the sub expression.

Parameters
errorsThe sub expression
mThe storage matrix
iThe first index of the block
jThe second index of the block
kThe third index of the block
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
C3The third dimension pooling ratio

◆ pool_block_3d() [2/2]

template<typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::pool_block_3d ( const C &  errors,
M &  m,
size_t  i,
size_t  j,
size_t  k,
size_t  c1,
size_t  c2,
size_t  c3 
)
inlinestatic

Pool a 3D block of the sub expression.

Parameters
errorsThe sub expression
mThe storage matrix
iThe first index of the block
jThe second index of the block
kThe third index of the block
c1The first dimension pooling ratio
c2The second dimension pooling ratio
c3The third dimension pooling ratio

◆ pool_block_4d() [1/2]

template<size_t C1, size_t C2, size_t C3, typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::pool_block_4d ( const C &  errors,
M &  m,
size_t  n,
size_t  i,
size_t  j,
size_t  k 
)
inlinestatic

Pool a 4D block of the sub expression.

Parameters
errorsThe sub expression
mThe storage matrix
iThe first index of the block
jThe second index of the block
kThe third index of the block
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
C3The third dimension pooling ratio

◆ pool_block_4d() [2/2]

template<typename C , typename M >
static void etl::impl::standard::avg_pool_upsample_3d::pool_block_4d ( const C &  errors,
M &  m,
size_t  n,
size_t  i,
size_t  j,
size_t  k,
size_t  c1,
size_t  c2,
size_t  c3 
)
inlinestatic

Pool a 4D block of the sub expression.

Parameters
errorsThe sub expression
mThe storage matrix
iThe first index of the block
jThe second index of the block
kThe third index of the block
c1The first dimension pooling ratio
c2The second dimension pooling ratio
c3The third dimension pooling ratio

The documentation for this struct was generated from the following file: