public class MKLDNNBatchNormHelper extends Object implements BatchNormalizationHelper
| Constructor and Description |
|---|
MKLDNNBatchNormHelper(DataType dataType) |
| Modifier and Type | Method and Description |
|---|---|
Pair<Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray epsilon,
long[] shape,
INDArray gamma,
INDArray beta,
INDArray dGammaView,
INDArray dBetaView,
double eps,
CNN2DFormat format,
LayerWorkspaceMgr workspaceMgr) |
boolean |
checkSupported(double eps,
boolean fixedGammaBeta) |
INDArray |
getMeanCache(DataType dataType) |
INDArray |
getVarCache(DataType dataType) |
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 x,
boolean training,
long[] shape,
INDArray gamma,
INDArray beta,
INDArray mean,
INDArray var,
double decay,
double eps,
CNN2DFormat format,
LayerWorkspaceMgr workspaceMgr) |
protected OpContext context
public MKLDNNBatchNormHelper(DataType dataType)
public boolean checkSupported(double eps,
boolean fixedGammaBeta)
checkSupported in interface BatchNormalizationHelperpublic Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray epsilon, long[] shape, INDArray gamma, INDArray beta, INDArray dGammaView, INDArray dBetaView, double eps, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface BatchNormalizationHelperpublic INDArray preOutput(INDArray x, boolean training, long[] shape, INDArray gamma, INDArray beta, INDArray mean, INDArray var, double decay, double eps, CNN2DFormat format, LayerWorkspaceMgr workspaceMgr)
preOutput in interface BatchNormalizationHelperpublic INDArray getMeanCache(DataType dataType)
getMeanCache in interface BatchNormalizationHelperpublic INDArray getVarCache(DataType dataType)
getVarCache in interface BatchNormalizationHelperpublic Map<String,Long> helperMemoryUse()
LayerHelperhelperMemoryUse in interface LayerHelperCopyright © 2020. All rights reserved.