NonNeg

public class NonNeg

Constrains the weights to be non-negative.

Inherited Constants

org.tensorflow.framework.constraints.Constraint
float EPSILON

Public Constructors

NonNeg(Ops tf)
Create a NonNeg constraint

Public Methods

<T extends TNumber> Operand<T>
call(Operand<T> weights)
Applies the constraint against the provided weights

Inherited Methods

org.tensorflow.framework.constraints.Constraint
abstract <T extends TNumber> Operand<T>
call(Operand<T> weights)
Applies the constraint against the provided weights
Ops
getTF()
Gets the TensorFlow Ops
boolean
equals(Object arg0)
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

Public Constructors

public NonNeg (Ops tf)

Create a NonNeg constraint

Parameters
tf the TensorFlow Ops

Public Methods

public Operand<T> call (Operand<T> weights)

Applies the constraint against the provided weights

Parameters
weights the weights
Returns
  • the constrained weights