Contains functions and values related to tensor shapes.
| Function or value |
Description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Full Usage:
checkCanCat shapes dim
Parameters:
Shape[]
dim : int
Returns: int * int array * int * int array * int[]
|
Checks if the given shapes are appropriate for a concatenation operation and returns information related to the resulting shape.
|
Full Usage:
checkCanConv1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation
Parameters:
DeviceType
deviceType2 : DeviceType
dtype1 : Dtype
dtype2 : Dtype
shape1 : Shape
shape2 : Shape
stride : int
padding : int
dilation : int
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.
|
Full Usage:
checkCanConv2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations
Parameters:
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[]
|
Checks if the given shapes are appropriate for a convolution operation and returns information related to the resulting shape.
|
Full Usage:
checkCanConv3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations
Parameters:
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[]
|
Checks if the given shapes are appropriate for a convolution operation and returns information related to the resulting shape.
|
Full Usage:
checkCanConvTranspose1d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 stride padding dilation outputPadding
Parameters:
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[]
|
Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.
|
Full Usage:
checkCanConvTranspose2d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings
Parameters:
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[]
|
Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.
|
Full Usage:
checkCanConvTranspose3d deviceType1 deviceType2 dtype1 dtype2 shape1 shape2 strides paddings dilations outputPaddings
Parameters:
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[]
|
Checks if the given shapes are appropriate for a transposed convolution operation and returns information related to the resulting shape.
|
|
Checks if the given shape is appropriate for a determinant operation.
|
Full Usage:
checkCanDilate dim dilations
Parameters:
int
dilations : int[]
|
Checks if the given shape is appropriate for a dilate operation.
|
|
|
Full Usage:
checkCanDropout p
Parameters:
double
|
Checks if the given shape is appropriate for a dropout operation.
|
|
Checks if the given shape is appropriate for a dropout2d operation.
|
|
Checks if the given shape is appropriate for a dropout3d operation.
|
|
|
Full Usage:
checkCanFlatten shape startDim endDim
Parameters:
Shape
startDim : int
endDim : int
|
Checks if the given shape is appropriate for a flatten operation.
|
Full Usage:
checkCanFlip dim dims
Parameters:
int
dims : int[]
|
Checks if the given shape is appropriate for a flip operation.
|
|
|
Full Usage:
checkCanGetSlice shape fullBounds
Parameters:
Shape
fullBounds : int[,]
Returns: int[]
|
Checks if the given shapes are appropriate for a GetSlice operation and returns information related to the resulting shape.
|
Full Usage:
checkCanIndex shape index
Parameters:
int[]
index : int[]
|
Checks if the given index is valid in the context of the given shape.
|
|
Checks if the given shape is appropriate for a transpose operation.
|
|
|
Checks if the given shapes are appropriate for a maxpool operation and returns information related to the resulting shape.
|
|
|
|
|
|
|
|
Full Usage:
checkCanMinMaxReduce dim keepDim shape
Parameters:
int
keepDim : bool
shape : Shape
Returns: int[]
|
|
|
Checks if the given shape is appropriate for a pad operation.
|
Full Usage:
checkCanPermute shape permutation
Parameters:
Shape
permutation : int[]
Returns: int array * int array
|
Checks if the given shape is appropriate for a permute operation and returns information related to the resulting shape.
|
|
Checks if the given shape is appropriate for a repeat operation.
|
|
|
Full Usage:
checkCanSplit shape sizes dim
Parameters:
Shape
sizes : int[]
dim : int
Returns: int[] array
|
Checks if the given shapes are appropriate for a split operation and returns information related to the resulting shape.
|
Full Usage:
checkCanStack shapes dim
Parameters:
Shape[]
dim : int
Returns: int * int array * int array * int[]
|
Checks if the given shapes are appropriate for a stack operation and returns information related to the resulting shape.
|
|
Checks if the given shape is appropriate for a transpose operation and returns information related to the resulting shape.
|
Full Usage:
checkCanTranspose2d dim
Parameters:
int
|
Checks if the given shape is appropriate for a transpose operation.
|
|
Checks if the given shape is appropriate for an unsqueeze operation and returns the resulting shape.
|
Full Usage:
checkCanUnstack shape dim
Parameters:
Shape
dim : int
Returns: int array * int array * int array
|
Checks if the given shapes are appropriate for an unstack operation and returns information related to the resulting shape.
|
|
|
Full Usage:
checkDeviceTypes deviceType1 deviceType2
Parameters:
DeviceType
deviceType2 : DeviceType
|
Checks if the two device types are equal.
|
|
|
|
|
Full Usage:
completeDim dims dim
Parameters:
int
dim : int
Returns: int
|
Completes the given shape dimension with respect to a concrete dimension.
|
Full Usage:
completeDimUnsqueeze dims dim
Parameters:
int
dim : int
Returns: int
|
Completes the given shape dimension with respect to a concrete dimension, for the unsqueeze operation.
|
|
|
Full Usage:
completeSliceBounds shape bounds
Parameters:
Shape
bounds : int[,]
Returns: int[,]
|
|
|
Checks if the given shapes are appropriate for a transpose operation and returns information related to the resulting shape.
|
|
|
Full Usage:
create xs
Parameters:
int seq
Returns: int[]
Modifiers: inline |
|
|
Computes the shape that results from a dilation operation.
|
Full Usage:
flatten startDim endDim shape
Parameters:
int
endDim : int
shape : Shape
Returns: int[]
|
Computes the shape that results from a flatten operation.
|
Full Usage:
locationToBounds shape location
Parameters:
Shape
location : int[]
Returns: int[,]
|
Converts the given location to a three-element bounds array in the context of the given shape.
|
|
|
Full Usage:
resolve2dConvOutputPadding outputPadding outputPaddings
Parameters:
int option
outputPaddings : 'a option
Returns: int[]
Type parameters: 'a (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve2dConvSizes stride strides padding paddings dilation dilations
Parameters:
int option
strides : 'a option
padding : int option
paddings : 'b option
dilation : int option
dilations : 'c option
Returns: int[] * int[] * int[]
Type parameters: 'a, 'b, 'c (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve2dKernelSizes kernelSize kernelSizes
Parameters:
int option
kernelSizes : 'a option
Returns: int[]
Type parameters: 'a (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve2dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings
Parameters:
'a option
kernelSizes : 'b option
stride : 'a option
strides : 'c option
padding : int option
paddings : 'd option
Returns: 'a[] * 'a[] * int[]
Type parameters: 'a, 'b, 'c, 'd (requires :> 'a Microsoft.FSharp.Collections.seq and :> 'a Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve3dConvOutputPadding outputPadding outputPaddings
Parameters:
int option
outputPaddings : 'a option
Returns: int[]
Type parameters: 'a (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve3dConvSizes stride strides padding paddings dilation dilations
Parameters:
int option
strides : 'a option
padding : int option
paddings : 'b option
dilation : int option
dilations : 'c option
Returns: int[] * int[] * int[]
Type parameters: 'a, 'b, 'c (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve3dKernelSizes kernelSize kernelSizes
Parameters:
int option
kernelSizes : 'a option
Returns: int[]
Type parameters: 'a (requires :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
Full Usage:
resolve3dMaxPoolSizes kernelSize kernelSizes stride strides padding paddings
Parameters:
'a option
kernelSizes : 'b option
stride : 'a option
strides : 'c option
padding : int option
paddings : 'd option
Returns: 'a[] * 'a[] * int[]
Type parameters: 'a, 'b, 'c, 'd (requires :> 'a Microsoft.FSharp.Collections.seq and :> 'a Microsoft.FSharp.Collections.seq and :> Microsoft.FSharp.Core.int Microsoft.FSharp.Collections.seq) |
|
The shape for a scalar value.
|
|
|
|
Full Usage:
undilatedShape shape dilations
Parameters:
Shape
dilations : int[]
Returns: int array
|
Computes the shape that results from an undilation operation.
|
|
© Copyright 2021, DiffSharp and dfx Contributors.