public class CudnnConvolutionHelper extends BaseCudnnHelper implements org.deeplearning4j.nn.layers.convolution.ConvolutionHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
CudnnConvolutionHelper.CudnnForwardArgs |
BaseCudnnHelper.CudnnContext, BaseCudnnHelper.DataCache, BaseCudnnHelper.TensorArrayalpha, beta, dataType, dataTypeSize, sizeInBytes, TENSOR_FORMAT| Constructor and Description |
|---|
CudnnConvolutionHelper() |
| Modifier and Type | Method and Description |
|---|---|
INDArray |
activate(INDArray z,
IActivation afn) |
org.nd4j.linalg.primitives.Pair<org.deeplearning4j.nn.gradient.Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray weights,
INDArray delta,
int[] kernel,
int[] strides,
int[] pad,
INDArray biasGradView,
INDArray weightGradView,
IActivation afn,
org.deeplearning4j.nn.conf.layers.ConvolutionLayer.AlgoMode mode,
org.deeplearning4j.nn.conf.layers.ConvolutionLayer.BwdFilterAlgo bwdFilterAlgo,
org.deeplearning4j.nn.conf.layers.ConvolutionLayer.BwdDataAlgo bwdDataAlgo,
org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode,
int[] dilation,
org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr) |
static CudnnConvolutionHelper.CudnnForwardArgs |
getCudnnForwardArgs(INDArray input,
int[] kernel,
int[] strides,
int[] padding,
int[] dilation,
org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode,
org.deeplearning4j.nn.conf.layers.PoolingType poolingType) |
Map<String,Long> |
helperMemoryUse() |
INDArray |
preOutput(INDArray input,
INDArray weights,
INDArray bias,
int[] kernel,
int[] strides,
int[] pad,
org.deeplearning4j.nn.conf.layers.ConvolutionLayer.AlgoMode mode,
org.deeplearning4j.nn.conf.layers.ConvolutionLayer.FwdAlgo fwdAlgo,
org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode,
int[] dilation,
org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr) |
adaptForTensorDescr, checkCuda, checkCudnn, checkSupported, toCudnnDataTypepublic org.nd4j.linalg.primitives.Pair<org.deeplearning4j.nn.gradient.Gradient,INDArray> backpropGradient(INDArray input, INDArray weights, INDArray delta, int[] kernel, int[] strides, int[] pad, INDArray biasGradView, INDArray weightGradView, IActivation afn, org.deeplearning4j.nn.conf.layers.ConvolutionLayer.AlgoMode mode, org.deeplearning4j.nn.conf.layers.ConvolutionLayer.BwdFilterAlgo bwdFilterAlgo, org.deeplearning4j.nn.conf.layers.ConvolutionLayer.BwdDataAlgo bwdDataAlgo, org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode, int[] dilation, org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface org.deeplearning4j.nn.layers.convolution.ConvolutionHelperpublic INDArray preOutput(INDArray input, INDArray weights, INDArray bias, int[] kernel, int[] strides, int[] pad, org.deeplearning4j.nn.conf.layers.ConvolutionLayer.AlgoMode mode, org.deeplearning4j.nn.conf.layers.ConvolutionLayer.FwdAlgo fwdAlgo, org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode, int[] dilation, org.deeplearning4j.nn.workspace.LayerWorkspaceMgr workspaceMgr)
preOutput in interface org.deeplearning4j.nn.layers.convolution.ConvolutionHelperpublic INDArray activate(INDArray z, IActivation afn)
activate in interface org.deeplearning4j.nn.layers.convolution.ConvolutionHelperpublic static CudnnConvolutionHelper.CudnnForwardArgs getCudnnForwardArgs(INDArray input, int[] kernel, int[] strides, int[] padding, int[] dilation, org.deeplearning4j.nn.conf.ConvolutionMode convolutionMode, org.deeplearning4j.nn.conf.layers.PoolingType poolingType)
poolingType - Used when preparing data for subsampling layers ONLY. Null for convolution layersCopyright © 2018. All rights reserved.