Shape Module

Contains functions and values related to tensor shapes.

Functions and values

Function or value Description

broadcast2 shape1 shape2

Full Usage: broadcast2 shape1 shape2

Parameters:
Returns: int[]

Finds the shape into which `shape1` and `shape2` can be expanded.

shape1 : Shape
shape2 : Shape
Returns: int[]

broadcastShapes shapes

Full Usage: broadcastShapes shapes

Parameters:
Returns: Shape

Finds the shape into which all the shapes can be expanded.

shapes : Shape[]
Returns: Shape

canExpand oldShape newShape

Full Usage: canExpand oldShape newShape

Parameters:
Returns: bool

Indicates if one shape can expand into another through the addition of broadcast dimensions.

oldShape : Shape
newShape : Shape
Returns: bool

checkCanAddSlice shape1 location shape2

Full Usage: checkCanAddSlice shape1 location shape2

Parameters:

Checks if the given shape is appropriate for an addSlice operation.

shape1 : Shape
location : int[]
shape2 : Shape

checkCanAvgpool1d dtype shape kernelSize stride padding

Full Usage: checkCanAvgpool1d dtype shape kernelSize stride padding

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int
    stride : int
    padding : int

Returns: int * int * int * int * int[]

Checks if the given shapes are appropriate for an avgpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int
stride : int
padding : int
Returns: int * int * int * int * int[]

checkCanAvgpool2d dtype shape kernelSize strides paddings

Full Usage: checkCanAvgpool2d dtype shape kernelSize strides paddings

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

Checks if the given shapes are appropriate for an avgpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

checkCanAvgpool3d dtype shape kernelSize strides paddings

Full Usage: checkCanAvgpool3d dtype shape kernelSize strides paddings

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

Checks if the given shapes are appropriate for an avgpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

checkCanBMM shape1 shape2

Full Usage: checkCanBMM shape1 shape2

Parameters:
Returns: int[]

Checks if the given shapes are appropriate for a batched matrix multiplication operation.

shape1 : Shape
shape2 : Shape
Returns: int[]

checkCanCat shapes dim

Full Usage: checkCanCat shapes dim

Parameters:
    shapes : Shape[]
    dim : int

Returns: int * int[] * int * int[] * int[]

Checks if the given shapes are appropriate for a concatenation operation and returns information related to the resulting shape.

shapes : Shape[]
dim : int
Returns: int * int[] * int * int[] * int[]

checkCanConv1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation

Full Usage: checkCanConv1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation

Parameters:
Returns: int * int * int * int * int * int[]

Checks if the given shapes are appropriate for a convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
stride : int
padding : int
dilation : int
Returns: int * int * int * int * int * int[]

checkCanConv2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations

Full Usage: checkCanConv2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations

Parameters:
Returns: int * int * (int * int) * (int * int * int) * int[]

Checks if the given shapes are appropriate for a convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
strides : int[]
paddings : int[]
dilations : int[]
Returns: int * int * (int * int) * (int * int * int) * int[]

checkCanConv3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations

Full Usage: checkCanConv3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations

Parameters:
Returns: int * int * (int * int * int) * (int * int * int * int) * int[]

Checks if the given shapes are appropriate for a convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
strides : int[]
paddings : int[]
dilations : int[]
Returns: int * int * (int * int * int) * (int * int * int * int) * int[]

checkCanConvTranspose1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation outputPadding

Full Usage: checkCanConvTranspose1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation outputPadding

Parameters:
Returns: int * int * int * int * int * int[]

Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
stride : int
padding : int
dilation : int
outputPadding : int
Returns: int * int * int * int * int * int[]

checkCanConvTranspose2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings

Full Usage: checkCanConvTranspose2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings

Parameters:
Returns: int * int * (int * int) * (int * int * int) * int[]

Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
strides : int[]
paddings : int[]
dilations : int[]
outputPaddings : int[]
Returns: int * int * (int * int) * (int * int * int) * int[]

checkCanConvTranspose3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings

Full Usage: checkCanConvTranspose3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings

Parameters:
Returns: int * int * (int * int * int) * (int * int * int * int) * int[]

Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.

deviceType1 : DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
strides : int[]
paddings : int[]
dilations : int[]
outputPaddings : int[]
Returns: int * int * (int * int * int) * (int * int * int * int) * int[]

checkCanDet shape

Full Usage: checkCanDet shape

Parameters:

Checks if the given shape is appropriate for a determinant operation.

shape : Shape

checkCanDilate dim dilations

Full Usage: checkCanDilate dim dilations

Parameters:
    dim : int
    dilations : int[]

Checks if the given shape is appropriate for a dilate operation.

dim : int
dilations : int[]

checkCanDot shape1 shape2

Full Usage: checkCanDot shape1 shape2

Parameters:

Checks if the given shape is appropriate for a dot product operation.

shape1 : Shape
shape2 : Shape

checkCanDropout p

Full Usage: checkCanDropout p

Parameters:
    p : double

Checks if the given shape is appropriate for a dropout operation.

p : double

checkCanDropout2d shape p

Full Usage: checkCanDropout2d shape p

Parameters:
    shape : Shape
    p : double

Checks if the given shape is appropriate for a dropout2d operation.

shape : Shape
p : double

checkCanDropout3d shape p

Full Usage: checkCanDropout3d shape p

Parameters:
    shape : Shape
    p : double

Checks if the given shape is appropriate for a dropout3d operation.

shape : Shape
p : double

checkCanExpand oldShape newShape

Full Usage: checkCanExpand oldShape newShape

Parameters:

Checks if one shape can expand into another through the addition of broadcast dimensions.

oldShape : Shape
newShape : Shape

checkCanFlatten shape startDim endDim

Full Usage: checkCanFlatten shape startDim endDim

Parameters:
    shape : Shape
    startDim : int
    endDim : int

Checks if the given shape is appropriate for a flatten operation.

shape : Shape
startDim : int
endDim : int

checkCanFlip dim dims

Full Usage: checkCanFlip dim dims

Parameters:
    dim : int
    dims : int[]

Checks if the given shape is appropriate for a flip operation.

dim : int
dims : int[]

checkCanGather shape dim indicesShape indicesDtype

Full Usage: checkCanGather shape dim indicesShape indicesDtype

Parameters:

Checks if the given shape is appropriate for a gather operation.

shape : Shape
dim : int
indicesShape : Shape
indicesDtype : Dtype

checkCanGetSlice shape fullBounds

Full Usage: checkCanGetSlice shape fullBounds

Parameters:
    shape : Shape
    fullBounds : int[,]

Returns: int[]

Checks if the given shapes are appropriate for a GetSlice operation and returns information related to the resulting shape.

shape : Shape
fullBounds : int[,]
Returns: int[]

checkCanIndex shape index

Full Usage: checkCanIndex shape index

Parameters:
    shape : int[]
    index : int[]

Checks if the given index is valid in the context of the given shape.

shape : int[]
index : int[]

checkCanInvert shape

Full Usage: checkCanInvert shape

Parameters:

Checks if the given shape is appropriate for a transpose operation.

shape : Shape

checkCanMatmul shape1 shape2

Full Usage: checkCanMatmul shape1 shape2

Parameters:
Returns: (int[] * int[]) * (int[] * int[])

Checks if the given shapes are appropriate for a matmul operation.

shape1 : Shape
shape2 : Shape
Returns: (int[] * int[]) * (int[] * int[])

checkCanMaxOrAvgpool1d nm dtype shape kernelSize stride padding

Full Usage: checkCanMaxOrAvgpool1d nm dtype shape kernelSize stride padding

Parameters:
    nm : string
    dtype : Dtype
    shape : Shape
    kernelSize : int
    stride : int
    padding : int

Returns: int * int * int * int * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

nm : string
dtype : Dtype
shape : Shape
kernelSize : int
stride : int
padding : int
Returns: int * int * int * int * int[]

checkCanMaxOrAvgpool2d nm dtype shape kernelSize strides paddings

Full Usage: checkCanMaxOrAvgpool2d nm dtype shape kernelSize strides paddings

Parameters:
    nm : string
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

nm : string
dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

checkCanMaxOrAvgpool3d nm dtype shape kernelSize strides paddings

Full Usage: checkCanMaxOrAvgpool3d nm dtype shape kernelSize strides paddings

Parameters:
    nm : string
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

nm : string
dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

checkCanMaxpool1d dtype shape kernelSize stride padding

Full Usage: checkCanMaxpool1d dtype shape kernelSize stride padding

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int
    stride : int
    padding : int

Returns: int * int * int * int * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int
stride : int
padding : int
Returns: int * int * int * int * int[]

checkCanMaxpool2d dtype shape kernelSize strides paddings

Full Usage: checkCanMaxpool2d dtype shape kernelSize strides paddings

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int) * (int * int) * (int * int) * int[]

checkCanMaxpool3d dtype shape kernelSize strides paddings

Full Usage: checkCanMaxpool3d dtype shape kernelSize strides paddings

Parameters:
    dtype : Dtype
    shape : Shape
    kernelSize : int[]
    strides : int[]
    paddings : int[]

Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
kernelSize : int[]
strides : int[]
paddings : int[]
Returns: int * int * (int * int * int) * (int * int * int) * (int * int * int) * int[]

checkCanMaxunpool1d dtype shape indicesDtype indicesShape outputSize

Full Usage: checkCanMaxunpool1d dtype shape indicesDtype indicesShape outputSize

Parameters:
Returns: int * int * int * int[]

Checks if the given shapes are appropriate for a maxunpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
indicesDtype : Dtype
indicesShape : Shape
outputSize : int[]
Returns: int * int * int * int[]

checkCanMaxunpool2d dtype shape indicesDtype indicesShape outputSize

Full Usage: checkCanMaxunpool2d dtype shape indicesDtype indicesShape outputSize

Parameters:
Returns: int * int * (int * int) * int[]

Checks if the given shapes are appropriate for a maxunpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
indicesDtype : Dtype
indicesShape : Shape
outputSize : int[]
Returns: int * int * (int * int) * int[]

checkCanMaxunpool3d dtype shape indicesDtype indicesShape outputSize

Full Usage: checkCanMaxunpool3d dtype shape indicesDtype indicesShape outputSize

Parameters:
Returns: int * int * (int * int * int) * int[]

Checks if the given shapes are appropriate for a maxunpool operation and returns information related to the resulting shape.

dtype : Dtype
shape : Shape
indicesDtype : Dtype
indicesShape : Shape
outputSize : int[]
Returns: int * int * (int * int * int) * int[]

checkCanMinMaxReduce dim keepDim shape

Full Usage: checkCanMinMaxReduce dim keepDim shape

Parameters:
    dim : int
    keepDim : bool
    shape : Shape

Returns: int[]
dim : int
keepDim : bool
shape : Shape
Returns: int[]

checkCanPad shape paddings

Full Usage: checkCanPad shape paddings

Parameters:
    shape : Shape
    paddings : int[]

Checks if the given shape is appropriate for a pad operation.

shape : Shape
paddings : int[]

checkCanPermute shape permutation

Full Usage: checkCanPermute shape permutation

Parameters:
    shape : Shape
    permutation : int[]

Returns: int[] * int[]

Checks if the given shape is appropriate for a permute operation and returns information related to the resulting shape.

shape : Shape
permutation : int[]
Returns: int[] * int[]

checkCanRepeat shape dim

Full Usage: checkCanRepeat shape dim

Parameters:
    shape : Shape
    dim : int

Checks if the given shape is appropriate for a repeat operation.

shape : Shape
dim : int

checkCanScatter shape dim indicesShape indicesDtype destinationShape

Full Usage: checkCanScatter shape dim indicesShape indicesDtype destinationShape

Parameters:

Checks if the given shape is appropriate for a scatter operation.

shape : Shape
dim : int
indicesShape : Shape
indicesDtype : Dtype
destinationShape : Shape

checkCanSolve shapeA shapeB

Full Usage: checkCanSolve shapeA shapeB

Parameters:
Returns: int[]

Checks if the given shapes are appropriate for a linear solve operation, and returns the resulting shape of the solution

shapeA : Shape
shapeB : Shape
Returns: int[]

checkCanSplit shape sizes dim

Full Usage: checkCanSplit shape sizes dim

Parameters:
    shape : Shape
    sizes : int[]
    dim : int

Returns: int[][]

Checks if the given shapes are appropriate for a split operation and returns information related to the resulting shape.

shape : Shape
sizes : int[]
dim : int
Returns: int[][]

checkCanStack shapes dim

Full Usage: checkCanStack shapes dim

Parameters:
    shapes : Shape[]
    dim : int

Returns: int * int[] * int[] * int[]

Checks if the given shapes are appropriate for a stack operation and returns information related to the resulting shape.

shapes : Shape[]
dim : int
Returns: int * int[] * int[] * int[]

checkCanTranspose shape dim0 dim1

Full Usage: checkCanTranspose shape dim0 dim1

Parameters:
    shape : Shape
    dim0 : int
    dim1 : int

Checks if the given shape is appropriate for a transpose operation and returns information related to the resulting shape.

shape : Shape
dim0 : int
dim1 : int

checkCanTranspose2d dim

Full Usage: checkCanTranspose2d dim

Parameters:
    dim : int

Checks if the given shape is appropriate for a transpose operation.

dim : int

checkCanUnsqueeze dim shape

Full Usage: checkCanUnsqueeze dim shape

Parameters:
    dim : int
    shape : Shape

Returns: int[]

Checks if the given shape is appropriate for an unsqueeze operation and returns the resulting shape.

dim : int
shape : Shape
Returns: int[]

checkCanUnstack shape dim

Full Usage: checkCanUnstack shape dim

Parameters:
    shape : Shape
    dim : int

Returns: int[] * int[] * int[]

Checks if the given shapes are appropriate for an unstack operation and returns information related to the resulting shape.

shape : Shape
dim : int
Returns: int[] * int[] * int[]

checkCanView shape1 shape2

Full Usage: checkCanView shape1 shape2

Parameters:

Checks if the given shape is appropriate for a view operation.

shape1 : Shape
shape2 : Shape

checkDeviceTypes deviceType1 deviceType2

Full Usage: checkDeviceTypes deviceType1 deviceType2

Parameters:

Checks if the two device types are equal.

deviceType1 : DeviceType
deviceType2 : DeviceType

checkDtypes dtype1 dtype2

Full Usage: checkDtypes dtype1 dtype2

Parameters:

Checks if the two tensor element types are equal.

dtype1 : Dtype
dtype2 : Dtype

complete nelement shape

Full Usage: complete nelement shape

Parameters:
    nelement : int
    shape : Shape

Returns: Shape

Completes the given shape with respect to a tensor with the given number of elements.

nelement : int
shape : Shape
Returns: Shape

completeDim dims dim

Full Usage: completeDim dims dim

Parameters:
    dims : int
    dim : int

Returns: int

Completes the given shape dimension with respect to a concrete dimension.

dims : int
dim : int
Returns: int

completeDimUnsqueeze dims dim

Full Usage: completeDimUnsqueeze dims dim

Parameters:
    dims : int
    dim : int

Returns: int

Completes the given shape dimension with respect to a concrete dimension, for the unsqueeze operation.

dims : int
dim : int
Returns: int

completeExpand shape newShape

Full Usage: completeExpand shape newShape

Parameters:
Returns: int[]

Completes the new shape for an expand operation based on the current shape of the tensor.

shape : Shape
newShape : Shape
Returns: int[]

completeSliceBounds shape bounds

Full Usage: completeSliceBounds shape bounds

Parameters:
    shape : Shape
    bounds : int[,]

Returns: int[,]
shape : Shape
bounds : int[,]
Returns: int[,]

computeTranspose2d shape

Full Usage: computeTranspose2d shape

Parameters:
Returns: int[]

Checks if the given shapes are appropriate for a transpose operation and returns information related to the resulting shape.

shape : Shape
Returns: int[]

contains bigShape smallShape

Full Usage: contains bigShape smallShape

Parameters:
Returns: bool

Indicates if one shape contains another.

bigShape : Shape
smallShape : Shape
Returns: bool

create xs

Full Usage: create xs

Parameters:
    xs : seq<int>

Returns: int[]
Modifiers: inline
xs : seq<int>
Returns: int[]

dilated shape dilations

Full Usage: dilated shape dilations

Parameters:
    shape : Shape
    dilations : int[]

Returns: int[]

Computes the shape that results from a dilation operation.

shape : Shape
dilations : int[]
Returns: int[]

flatten startDim endDim shape

Full Usage: flatten startDim endDim shape

Parameters:
    startDim : int
    endDim : int
    shape : Shape

Returns: int[]

Computes the shape that results from a flatten operation.

startDim : int
endDim : int
shape : Shape
Returns: int[]

locationToBounds shape location

Full Usage: locationToBounds shape location

Parameters:
    shape : Shape
    location : int[]

Returns: int[,]

Converts the given location to a three-element bounds array in the context of the given shape.

shape : Shape
location : int[]
Returns: int[,]

nelement shape

Full Usage: nelement shape

Parameters:
Returns: int

Gets the total number of elements in the shape.

shape : Shape
Returns: int

resolve2dConvOutputPadding outputPadding outputPaddings

Full Usage: resolve2dConvOutputPadding outputPadding outputPaddings

Parameters:
    outputPadding : int option
    outputPaddings : 'b option

Returns: int[]
outputPadding : int option
outputPaddings : 'b option
Returns: int[]

resolve2dConvSizes stride strides padding paddings dilation dilations

Full Usage: resolve2dConvSizes stride strides padding paddings dilation dilations

Parameters:
    stride : int option
    strides : 'b option
    padding : int option
    paddings : 'c option
    dilation : int option
    dilations : 'd option

Returns: int[] * int[] * int[]
stride : int option
strides : 'b option
padding : int option
paddings : 'c option
dilation : int option
dilations : 'd option
Returns: int[] * int[] * int[]

resolve2dKernelSizes kernelSize kernelSizes

Full Usage: resolve2dKernelSizes kernelSize kernelSizes

Parameters:
    kernelSize : int option
    kernelSizes : 'a option

Returns: int[]
kernelSize : int option
kernelSizes : 'a option
Returns: int[]

resolve2dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings

Full Usage: resolve2dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings

Parameters:
    kernelSize : 'b option
    kernelSizes : 'c option
    stride : 'b option
    strides : 'd option
    padding : int option
    paddings : 'e option

Returns: 'b[] * 'b[] * int[]
kernelSize : 'b option
kernelSizes : 'c option
stride : 'b option
strides : 'd option
padding : int option
paddings : 'e option
Returns: 'b[] * 'b[] * int[]

resolve3dConvOutputPadding outputPadding outputPaddings

Full Usage: resolve3dConvOutputPadding outputPadding outputPaddings

Parameters:
    outputPadding : int option
    outputPaddings : 'b option

Returns: int[]
outputPadding : int option
outputPaddings : 'b option
Returns: int[]

resolve3dConvSizes stride strides padding paddings dilation dilations

Full Usage: resolve3dConvSizes stride strides padding paddings dilation dilations

Parameters:
    stride : int option
    strides : 'b option
    padding : int option
    paddings : 'c option
    dilation : int option
    dilations : 'd option

Returns: int[] * int[] * int[]
stride : int option
strides : 'b option
padding : int option
paddings : 'c option
dilation : int option
dilations : 'd option
Returns: int[] * int[] * int[]

resolve3dKernelSizes kernelSize kernelSizes

Full Usage: resolve3dKernelSizes kernelSize kernelSizes

Parameters:
    kernelSize : int option
    kernelSizes : 'a option

Returns: int[]
kernelSize : int option
kernelSizes : 'a option
Returns: int[]

resolve3dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings

Full Usage: resolve3dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings

Parameters:
    kernelSize : 'b option
    kernelSizes : 'c option
    stride : 'b option
    strides : 'd option
    padding : int option
    paddings : 'e option

Returns: 'b[] * 'b[] * int[]
kernelSize : 'b option
kernelSizes : 'c option
stride : 'b option
strides : 'd option
padding : int option
paddings : 'e option
Returns: 'b[] * 'b[] * int[]

scalar

Full Usage: scalar

Returns: Shape

The shape for a scalar value.

Returns: Shape

squeeze dim shape

Full Usage: squeeze dim shape

Parameters:
    dim : int
    shape : Shape

Returns: int[]

Computes the shape that results from a squeeze operation.

dim : int
shape : Shape
Returns: int[]

undilatedShape shape dilations

Full Usage: undilatedShape shape dilations

Parameters:
    shape : Shape
    dilations : int[]

Returns: int[]

Computes the shape that results from an undilation operation.

shape : Shape
dilations : int[]
Returns: int[]

unsqueezeAs shape1 shape2

Full Usage: unsqueezeAs shape1 shape2

Parameters:
Returns: int[]

Computes the shape that results from an unsqueezeAs operation.

shape1 : Shape
shape2 : Shape
Returns: int[]

© Copyright 2021, DiffSharp Contributors.