public class Convolution3DUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static int[] |
get3DOutputSize(INDArray inputData,
int[] kernel,
int[] strides,
int[] padding,
ConvolutionMode convolutionMode,
int[] dilation,
boolean isNCDHW)
Get the output size (depth/height/width) for the given input data and CNN3D configuration
|
static int[] |
get3DSameModeTopLeftPadding(int[] outSize,
int[] inSize,
int[] kernel,
int[] strides,
int[] dilation)
Get top and left padding for same mode only for 3d convolutions
|
static void |
validateCnn3DKernelStridePadding(int[] kernelSize,
int[] stride,
int[] padding)
Perform validation on the CNN3D layer kernel/stride/padding.
|
public static int[] get3DOutputSize(INDArray inputData, int[] kernel, int[] strides, int[] padding, ConvolutionMode convolutionMode, int[] dilation, boolean isNCDHW)
inputData - Input datakernel - Kernel size (depth/height/width)strides - Strides (depth/height/width)padding - Padding (depth/height/width)convolutionMode - Convolution mode (Same, Strict, Truncate)dilation - Kernel dilation (depth/height/width)public static int[] get3DSameModeTopLeftPadding(int[] outSize,
int[] inSize,
int[] kernel,
int[] strides,
int[] dilation)
outSize - inSize - kernel - strides - public static void validateCnn3DKernelStridePadding(int[] kernelSize,
int[] stride,
int[] padding)
kernelSize - Kernel size array to checkstride - Stride array to checkpadding - Padding array to checkCopyright © 2020. All rights reserved.