ML Community Day is November 9! Join us for updates from TensorFlow, JAX, and more Learn more


Abstract base class for representing constraints.

The constraint class provides feasibility computation functionality for computing the probability of actions being feasible.

time_step_spec A TimeStep spec of the expected time_steps.
action_spec A nest of BoundedTensorSpec representing the actions.
name Python str name of this constraint.



View source

Returns the probability of input actions being feasible.