Public Member Functions | |
| def | check (self, value) |
| def | __repr__ (self) |
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.
Definition at line 48 of file constraints.py.
| def torch.distributions.constraints.Constraint.check | ( | self, | |
| value | |||
| ) |
Returns a byte tensor of `sample_shape + batch_shape` indicating whether each event in value satisfies this constraint.
Definition at line 55 of file constraints.py.
1.8.11