public class MKLDNNSubsamplingHelper extends Object implements SubsamplingHelper
Constructor and Description |
---|
MKLDNNSubsamplingHelper(org.nd4j.linalg.api.buffer.DataType dataType) |
Modifier and Type | Method and Description |
---|---|
INDArray |
activate(INDArray input,
boolean training,
int[] kernel,
int[] strides,
int[] pad,
PoolingType poolingType,
ConvolutionMode convolutionMode,
int[] dilation,
LayerWorkspaceMgr workspaceMgr) |
Pair<Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray epsilon,
int[] kernel,
int[] strides,
int[] pad,
PoolingType poolingType,
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. |
protected OpContext context
public MKLDNNSubsamplingHelper(org.nd4j.linalg.api.buffer.DataType dataType)
public boolean checkSupported()
checkSupported
in interface SubsamplingHelper
public Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray epsilon, int[] kernel, int[] strides, int[] pad, PoolingType poolingType, ConvolutionMode convolutionMode, int[] dilation, LayerWorkspaceMgr workspaceMgr)
backpropGradient
in interface SubsamplingHelper
public INDArray activate(INDArray input, boolean training, int[] kernel, int[] strides, int[] pad, PoolingType poolingType, ConvolutionMode convolutionMode, int[] dilation, LayerWorkspaceMgr workspaceMgr)
activate
in interface SubsamplingHelper
public Map<String,Long> helperMemoryUse()
LayerHelper
helperMemoryUse
in interface LayerHelper
Copyright © 2019. All rights reserved.