contrib.layers.l2_regularizer

tf.contrib.layers.l2_regularizer

tf.contrib.layers.l2_regularizer

l2_regularizer(
    scale,
    scope=None
)

Defined in tensorflow/contrib/layers/python/layers/regularizers.py.

See the guide: Layers (contrib) > Regularizers

Returns a function that can be used to apply L2 regularization to weights.

登录查看完整内容