def METHOD_NAME(
    self, inputs, lr, epsilon, weight_decay, gc, dc
):
    param, momentum, grad = inputs
    momentum = np.abs(momentum)
    lr = np.array([lr], dtype=np.float32)
    op = core.CreateOperator(
        "Adagrad",
        ["param", "momentum", "grad", "lr"],
        ["param", "momentum", "effective_lr"],
        epsilon=epsilon,
        weight_decay=weight_decay,
        device_option=gc,
    )
    self.assertReferenceChecks(
        gc,
        op,
        [param, momentum, grad, lr],
        functools.partial(
            ref_adagrad,
            epsilon=epsilon,
            output_effective_lr=True,
            weight_decay=weight_decay,
        ),
    )