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(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. |
mklDnnEnabledprotected OpContext context
public MKLDNNLocalResponseNormalizationHelper(DataType dataType)
public boolean checkSupported(double k,
double n,
double alpha,
double beta)
checkSupported in interface LocalResponseNormalizationHelperpublic Pair<Gradient,INDArray> backpropGradient(INDArray input, INDArray epsilon, double k, double n, double alpha, double beta, LayerWorkspaceMgr workspaceMgr)
backpropGradient in interface LocalResponseNormalizationHelperpublic INDArray activate(INDArray x, boolean training, double k, double n, double alpha, double beta, LayerWorkspaceMgr workspaceMgr)
activate in interface LocalResponseNormalizationHelperpublic Map<String,Long> helperMemoryUse()
LayerHelperhelperMemoryUse in interface LayerHelperCopyright © 2020. All rights reserved.