constrained_module
pytorch_lattice.constrained_module.ConstrainedModule
Bases: Module
A base class for constrained implementations of a torch.nn.Module
.
Source code in pytorch_lattice/constrained_module.py
apply_constraints()
abstractmethod
assert_constraints(eps=1e-06)
abstractmethod
Asserts that the module satisfied specified constraints.