public class MKLDNNSubsamplingHelper extends Object implements SubsamplingHelper
| Constructor and Description |
|---|
MKLDNNSubsamplingHelper(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,
CNN2DFormat format,
LayerWorkspaceMgr workspaceMgr) |
Pair<Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray epsilon,
int[] kernel,
int[] strides,
int[] pad,
PoolingType poolingType,
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. |
protected OpContext context
public MKLDNNSubsamplingHelper(DataType dataType)
public boolean checkSupported()
checkSupported in interface SubsamplingHelperpublic Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray epsilon, int[] kernel, int[] strides, int[] pad, PoolingType poolingType, ConvolutionMode convolutionMode, int[] dilation, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface SubsamplingHelperpublic INDArray activate(INDArray input, boolean training, int[] kernel, int[] strides, int[] pad, PoolingType poolingType, ConvolutionMode convolutionMode, int[] dilation, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
activate in interface SubsamplingHelperpublic Map<String,Long> helperMemoryUse()
LayerHelperhelperMemoryUse in interface LayerHelperCopyright © 2020. All rights reserved.