Abstract base class for constraints.
Abstract base class for constraints.
check()Returns a byte tensor of sample_shape + batch_shape indicating
whether each event in value satisfies this constraint.
Constraint$check(value)valueeach event in value will be checked.
clone()The objects of this class are cloneable with this method.
Constraint$clone(deep = FALSE)deepWhether to make a deep clone.
A constraint object represents a region over which a variable is valid, e.g. within which a variable can be optimized.