Function lipschitzInf
Creates a Projection
function that can be applied to a parameter matrix/tensor to constraint the Lipschitz
constant w.r.t. the L_infty vector norm.
This function should be used to create a Projection
for Conv2DOptions
or
DenseOptions
.
See https://arxiv.org/abs/1804.04368 for more details.
Parameters
Name | Description |
---|---|
maxK | The maximum permissible Lipschitz constant. |
Returns
A Projection
function that can be used to enforce the constraint.