public class UnitNormConstraint extends BaseConstraint
DEFAULT_EPSILON, dimensions, epsilon, params
Constructor and Description |
---|
UnitNormConstraint(int... dimensions)
Apply to weights but not biases by default
|
UnitNormConstraint(Set<String> paramNames,
int... dimensions) |
Modifier and Type | Method and Description |
---|---|
void |
apply(org.nd4j.linalg.api.ndarray.INDArray param) |
UnitNormConstraint |
clone() |
applyConstraint, getBroadcastDims
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getParams, setParams
public UnitNormConstraint(int... dimensions)
dimensions
- Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should
be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of
parameters which have order [depthOut, depthIn, kH, kW]public UnitNormConstraint(Set<String> paramNames, int... dimensions)
dimensions
- Dimensions to apply to. For DenseLayer, OutputLayer, RnnOutputLayer, LSTM, etc: this should
be dimension 1. For CNNs, this should be dimensions [1,2,3] corresponding to last 3 of
parameters which have order [depthOut, depthIn, kH, kW]public void apply(org.nd4j.linalg.api.ndarray.INDArray param)
apply
in class BaseConstraint
public UnitNormConstraint clone()
clone
in interface LayerConstraint
clone
in class BaseConstraint
Copyright © 2018. All rights reserved.