View source on GitHub |
Constrains the weights incident to each hidden unit to have unit norm.
Inherits From: Constraint
tf.keras.constraints.UnitNorm(
axis=0
)
Also available via the shortcut function tf.keras.constraints.unit_norm
.
Methods
from_config
@classmethod
from_config( config )
Instantiates a weight constraint from a configuration dictionary.
Example:
constraint = UnitNorm()
config = constraint.get_config()
constraint = UnitNorm.from_config(config)
Args | |
---|---|
config
|
A Python dictionary, the output of get_config .
|
Returns | |
---|---|
A tf.keras.constraints.Constraint instance.
|