Function lipschitz1

Creates a Projection function that can be applied to a parameter matrix/tensor to constraint the Lipschitz constant w.r.t. the L_1 vector norm.

Operation delegate(Operation) lipschitz1 (
  float maxK
);

This function should be used to create a Projection for Conv2DOptions.filterProj or DenseOptions.weightProj.

See https://arxiv.org/abs/1804.04368 for more details.

Parameters

NameDescription
maxK The maximum permissible Lipschitz constant.

Returns

A Projection function that can be used to enforce the constraint.