public class MKLDNNLocalResponseNormalizationHelper extends BaseMKLDNNHelper implements LocalResponseNormalizationHelper
Constructor and Description |
---|
MKLDNNLocalResponseNormalizationHelper(DataType dataType) |
Modifier and Type | Method and Description |
---|---|
INDArray |
activate(INDArray x,
boolean training,
double k,
double n,
double alpha,
double beta,
LayerWorkspaceMgr workspaceMgr) |
Pair<Gradient,INDArray> |
backpropGradient(INDArray input,
INDArray epsilon,
double k,
double n,
double alpha,
double beta,
LayerWorkspaceMgr workspaceMgr) |
boolean |
checkSupported() |
boolean |
checkSupported(double k,
double n,
double alpha,
double beta) |
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. |
mklDnnEnabled
protected OpContext context
public MKLDNNLocalResponseNormalizationHelper(DataType dataType)
public boolean checkSupported(double k, double n, double alpha, double beta)
checkSupported
in interface LocalResponseNormalizationHelper
public Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray epsilon, double k, double n, double alpha, double beta, LayerWorkspaceMgr workspaceMgr)
backpropGradient
in interface LocalResponseNormalizationHelper
public INDArray activate(INDArray x, boolean training, double k, double n, double alpha, double beta, LayerWorkspaceMgr workspaceMgr)
activate
in interface LocalResponseNormalizationHelper
public Map<String,Long> helperMemoryUse()
LayerHelper
helperMemoryUse
in interface LayerHelper
public boolean checkSupported()
checkSupported
in interface LayerHelper
Copyright © 2021. All rights reserved.