public abstract class
Constraint
Known Direct Subclasses |
Base class for Constraints. Constraint subclasses impose constraints on weight values
Constants
float | EPSILON |
Public Constructors
Constraint(Ops tf)
Creates a Constraint
|
Public Methods
abstract <T extends TNumber> Operand<T> | |
Ops |
getTF()
Gets the TensorFlow Ops
|
Inherited Methods
Constants
public static final float EPSILON
Constant Value:
1.0E-7
Public Constructors
public Constraint (Ops tf)
Creates a Constraint
Parameters
tf | the TensorFlow Ops |
---|
Public Methods
public abstract Operand<T> call (Operand<T> weights)
Applies the constraint against the provided weights
Parameters
weights | the weights |
---|
Returns
- the constrained weights
public Ops getTF ()
Gets the TensorFlow Ops
Returns
- the TensorFlow Ops