Caffe2 - Python API
A deep learning, cross platform ML framework
Public Member Functions | List of all members
torch.distributions.constraints._Simplex Class Reference
Inheritance diagram for torch.distributions.constraints._Simplex:
torch.distributions.constraints.Constraint

Public Member Functions

def check (self, value)
 
- Public Member Functions inherited from torch.distributions.constraints.Constraint
def check (self, value)
 
def __repr__ (self)
 

Detailed Description

Constrain to the unit simplex in the innermost (rightmost) dimension.
Specifically: `x >= 0` and `x.sum(-1) == 1`.

Definition at line 244 of file constraints.py.


The documentation for this class was generated from the following file: