Abstract base class for constraints.
A constraint object represents a region over which a variable is
   valid, e.g. within which a variable can be optimized.
Variables:
      * is_discrete (bool) -- Whether constrained space is
        discrete. Defaults to False.
  * **event_dim** (*int*) -- Number of rightmost dimensions that
    together define an event. The "check()" method will remove
    this many dimensions when computing validity.

check(value)
  Returns a byte tensor of "sample_shape + batch_shape" indicating
  whether each event in value satisfies this constraint.

torch.distributions.constraints.cat
alias of "_Cat"
torch.distributions.constraints.dependent_property
alias of "_DependentProperty"
torch.distributions.constraints.greater_than
alias of "_GreaterThan"
torch.distributions.constraints.greater_than_eq
alias of "_GreaterThanEq"
torch.distributions.constraints.independent
alias of "_IndependentConstraint"