public class MKLDNNConvHelper extends Object implements ConvolutionHelper
Modifier and Type | Field and Description |
---|---|
protected OpContext |
context |
protected OpContext |
contextBwd |
Constructor and Description |
---|
MKLDNNConvHelper(DataType dataType) |
Modifier and Type | Method and Description |
---|---|
INDArray |
activate(INDArray z,
IActivation afn,
boolean training) |
Pair<Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray weights,
INDArray bias,
INDArray delta,
int[] kernel,
int[] strides,
int[] pad,
INDArray biasGradView,
INDArray weightGradView,
IActivation afn,
ConvolutionLayer.AlgoMode mode,
ConvolutionLayer.BwdFilterAlgo bwdFilterAlgo,
ConvolutionLayer.BwdDataAlgo bwdDataAlgo,
ConvolutionMode convolutionMode,
int[] dilation,
CNN2DFormat format,
LayerWorkspaceMgr workspaceMgr) |
boolean |
checkSupported() |
Map<String,Long> |
helperMemoryUse()
Return the currently allocated memory for the helper.
(a) Excludes: any shared memory used by multiple helpers/layers (b) Excludes any temporary memory (c) Includes all memory that persists for longer than the helper method This is mainly used for debugging and reporting purposes. |
INDArray |
preOutput(INDArray input,
INDArray weights,
INDArray bias,
int[] kernel,
int[] strides,
int[] pad,
ConvolutionLayer.AlgoMode mode,
ConvolutionLayer.FwdAlgo fwdAlgo,
ConvolutionMode convolutionMode,
int[] dilation,
CNN2DFormat format,
LayerWorkspaceMgr workspaceMgr) |
public MKLDNNConvHelper(DataType dataType)
public boolean checkSupported()
checkSupported
in interface ConvolutionHelper
checkSupported
in interface LayerHelper
public Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray weights, INDArray bias, INDArray delta, int[] kernel, int[] strides, int[] pad, INDArray biasGradView, INDArray weightGradView, IActivation afn, ConvolutionLayer.AlgoMode mode, ConvolutionLayer.BwdFilterAlgo bwdFilterAlgo, ConvolutionLayer.BwdDataAlgo bwdDataAlgo, ConvolutionMode convolutionMode, int[] dilation, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
backpropGradient
in interface ConvolutionHelper
public INDArray preOutput(INDArray input, INDArray weights, INDArray bias, int[] kernel, int[] strides, int[] pad, ConvolutionLayer.AlgoMode mode, ConvolutionLayer.FwdAlgo fwdAlgo, ConvolutionMode convolutionMode, int[] dilation, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
preOutput
in interface ConvolutionHelper
public INDArray activate(INDArray z, IActivation afn, boolean training)
activate
in interface ConvolutionHelper
public Map<String,Long> helperMemoryUse()
LayerHelper
helperMemoryUse
in interface LayerHelper
Copyright © 2022. All rights reserved.