@frozen
public struct AvgPool3D<Scalar> : ParameterlessLayer where Scalar : TensorFlowFloatingPoint

An average pooling layer for spatial or spatio-temporal data.

  • Creates an average pooling layer.

    Declaration

    public init(
        poolSize: (Int, Int, Int, Int, Int),
        strides: (Int, Int, Int, Int, Int),
        padding: Padding
    )
  • Returns the output obtained from applying the layer to the given input.

    Declaration

    @differentiable
    public func callAsFunction(_ input: Tensor<Scalar>) -> Tensor<Scalar>

    Parameters

    input

    The input to the layer.

    Return Value

    The output.

  • Creates an average pooling layer.

    Declaration

    init(poolSize: (Int, Int, Int), strides: (Int, Int, Int), padding: Padding = .valid)

    Parameters

    poolSize

    Vertical and horizontal factors by which to downscale.

    strides

    The strides.

    padding

    The padding.

  • Creates an average pooling layer with the specified pooling window size and stride. All pooling sizes and strides are the same.

    Declaration

    init(poolSize: Int, strides: Int, padding: Padding = .valid)