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

Functor for 2D Max Pooling. More...

#include <pooling.hpp>

Static Public Member Functions

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename X , typename Y >
static void apply (const X &x, Y &&y)
 Pool x into y. More...
 
template<typename X , typename Y >
static void apply (const X &x, Y &&y, size_t c1, size_t c2, size_t s1, size_t s2, size_t p1, size_t p2)
 Pool x into y. More...
 

Static Public Attributes

template<typename A >
static constexpr bool gpu_computable = cudnn_enabled
 Indicates if the temporary expression can be directly evaluated using only GPU.
 

Detailed Description

Functor for 2D Max Pooling.

Member Function Documentation

◆ apply() [1/2]

template<size_t C1, size_t C2, size_t S1, size_t S2, size_t P1, size_t P2, typename X , typename Y >
static void etl::impl::max_pool_2d::apply ( const X &  x,
Y &&  y 
)
inlinestatic

Pool x into y.

Parameters
xThe expression to pol
yThe expression in which to store the result
Template Parameters
C1The first dimension pooling ratio
C2The second dimension pooling ratio
S1The first dimension stride
S2The second dimension stride
P1The first dimension padding
P2The second dimension padding

◆ apply() [2/2]

template<typename X , typename Y >
static void etl::impl::max_pool_2d::apply ( const X &  x,
Y &&  y,
size_t  c1,
size_t  c2,
size_t  s1,
size_t  s2,
size_t  p1,
size_t  p2 
)
inlinestatic

Pool x into y.

Parameters
xThe expression to pol
yThe expression in which to store the result

tparam C1 The first dimension pooling ratio tparam C2 The second dimension pooling ratio

tparam S1 The first dimension stride tparam S2 The second dimension stride

tparam P1 The first dimension padding tparam P2 The second dimension padding


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