AdaptiveMeanPool
struct
defined in module
Flux
AdaptiveMeanPool(out::NTuple)
Adaptive mean pooling layer. Calculates the necessary window size such that its output has
size(y)[1:N] == out
.
Expects as input an array with
ndims(x) == N+2
, i.e. channel and batch dimensions, after the
N
feature dimensions, where
N = length(out)
.
See also
MaxPool
,
AdaptiveMaxPool
.
julia> xs = rand(Float32, 100, 100, 3, 50); # batch of 50 RGB images
julia> AdaptiveMeanPool((25, 25))(xs) |> size
(25, 25, 3, 50)
julia> MeanPool((4,4))(xs) ≈ AdaptiveMeanPool((25, 25))(xs)
true
There is
1
method for Flux.AdaptiveMeanPool
:
The following pages link back here:
models/blocks.jl , models/layers.jl , Flux.jl , layers/conv.jl