Contents
tensornet.engine.ops.regularizer.
l1
Apply L1 regularization.
model (torch.nn.Module) – Model Instance.
loss (float) – Loss function value.
factor (float) – Factor for applying L1 regularization.
Regularized loss value.