public class MKLDNNConvHelper extends Object implements ConvolutionHelper
| Modifier and Type | Field and Description |
|---|---|
protected OpContext |
context |
protected OpContext |
contextBwd |
| Constructor and Description |
|---|
MKLDNNConvHelper(org.nd4j.linalg.api.buffer.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,
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,
LayerWorkspaceMgr workspaceMgr) |
public MKLDNNConvHelper(org.nd4j.linalg.api.buffer.DataType dataType)
public boolean checkSupported()
checkSupported in interface ConvolutionHelperpublic 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, LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface ConvolutionHelperpublic INDArray preOutput(INDArray input, INDArray weights, INDArray bias, int[] kernel, int[] strides, int[] pad, ConvolutionLayer.AlgoMode mode, ConvolutionLayer.FwdAlgo fwdAlgo, ConvolutionMode convolutionMode, int[] dilation, LayerWorkspaceMgr workspaceMgr)
preOutput in interface ConvolutionHelperpublic INDArray activate(INDArray z, IActivation afn, boolean training)
activate in interface ConvolutionHelperpublic Map<String,Long> helperMemoryUse()
LayerHelperhelperMemoryUse in interface LayerHelperCopyright © 2019. All rights reserved.