OpAvgPoolExtensions Module

Type extensions

Type extension Description

this.avgpool1d (kernelSize, ?stride, ?padding)

Full Usage: this.avgpool1d (kernelSize, ?stride, ?padding)

Parameters:
    kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.

Returns: Tensor

Applies a 1D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: Tensor

kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

Returns: Tensor

dsharp.avgpool1d (input, kernelSize, ?stride, ?padding)

Full Usage: dsharp.avgpool1d (input, kernelSize, ?stride, ?padding)

Parameters:
    input : Tensor - The input tensor.
    kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.

Returns: Tensor

Applies a 1D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: dsharp

input : Tensor

The input tensor.

kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

Returns: Tensor

this.avgpool2d (?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Full Usage: this.avgpool2d (?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Parameters:
    ?kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.
    ?kernelSizes : seq<int> - The sizes of the window to take a max over.
    ?strides : seq<int> - The strides of the window. Default value is kernelSize.
    ?paddings : seq<int> - The implicit zero paddings to be added on both sides.

Returns: Tensor

Applies a 1D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: Tensor

?kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

?kernelSizes : seq<int>

The sizes of the window to take a max over.

?strides : seq<int>

The strides of the window. Default value is kernelSize.

?paddings : seq<int>

The implicit zero paddings to be added on both sides.

Returns: Tensor

dsharp.avgpool2d (input, ?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Full Usage: dsharp.avgpool2d (input, ?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Parameters:
    input : Tensor - The input tensor.
    ?kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.
    ?kernelSizes : seq<int> - The sizes of the window to take a max over.
    ?strides : seq<int> - The strides of the window. Default value is kernelSize.
    ?paddings : seq<int> - The implicit zero paddings to be added on both sides.

Returns: Tensor

Applies a 2D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: dsharp

input : Tensor

The input tensor.

?kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

?kernelSizes : seq<int>

The sizes of the window to take a max over.

?strides : seq<int>

The strides of the window. Default value is kernelSize.

?paddings : seq<int>

The implicit zero paddings to be added on both sides.

Returns: Tensor

this.avgpool3d (?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Full Usage: this.avgpool3d (?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Parameters:
    ?kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.
    ?kernelSizes : seq<int> - The sizes of the window to take a max over.
    ?strides : seq<int> - The strides of the window. Default value is kernelSize.
    ?paddings : seq<int> - The implicit zero paddings to be added on both sides.

Returns: Tensor

Applies a 3D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: Tensor

?kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

?kernelSizes : seq<int>

The sizes of the window to take a max over.

?strides : seq<int>

The strides of the window. Default value is kernelSize.

?paddings : seq<int>

The implicit zero paddings to be added on both sides.

Returns: Tensor

dsharp.avgpool3d (input, ?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Full Usage: dsharp.avgpool3d (input, ?kernelSize, ?stride, ?padding, ?kernelSizes, ?strides, ?paddings)

Parameters:
    input : Tensor - The input tensor.
    ?kernelSize : int - The size of the window to take a max over.
    ?stride : int - The stride of the window. Default value is kernelSize.
    ?padding : int - The implicit zero padding to be added on both sides.
    ?kernelSizes : seq<int> - The sizes of the window to take a max over.
    ?strides : seq<int> - The strides of the window. Default value is kernelSize.
    ?paddings : seq<int> - The implicit zero paddings to be added on both sides.

Returns: Tensor

Applies a 2D average pooling over an input signal composed of several input planes, returning the max indices along with the outputs.

Extended Type: dsharp

input : Tensor

The input tensor.

?kernelSize : int

The size of the window to take a max over.

?stride : int

The stride of the window. Default value is kernelSize.

?padding : int

The implicit zero padding to be added on both sides.

?kernelSizes : seq<int>

The sizes of the window to take a max over.

?strides : seq<int>

The strides of the window. Default value is kernelSize.

?paddings : seq<int>

The implicit zero paddings to be added on both sides.

Returns: Tensor

© Copyright 2021, DiffSharp Contributors.