Public Member Functions | |
def | check (self, value) |
Public Member Functions inherited from torch.distributions.constraints.Constraint | |
def | check (self, value) |
def | __repr__ (self) |
Constrain to the two values `{0, 1}`.
Definition at line 97 of file constraints.py.