adapt.utils.GradientHandler

adapt.utils.GradientHandler(*args, **kwargs)[source]

Multiply gradients with a scalar during backpropagation.

Act as identity in forward step.

Parameters
lambda_initfloat (default=1.)

Scalar multiplier