TensorFlow 2.0 Beta is available Learn more

tf.keras.constraints.NonNeg

TensorFlow 2.0 version View source on GitHub

Class NonNeg

Constrains the weights to be non-negative.

Inherits From: Constraint

Aliases:

  • Class tf.compat.v1.keras.constraints.NonNeg
  • Class tf.compat.v1.keras.constraints.non_neg
  • Class tf.compat.v2.keras.constraints.NonNeg
  • Class tf.compat.v2.keras.constraints.non_neg
  • Class tf.keras.constraints.non_neg

Methods

__call__

View source

__call__(w)

get_config

View source

get_config()