Skip to content

Why not using calibrated_grads directly? #1

@ShuaiZ1037

Description

@ShuaiZ1037

hello, I am very interested in your paper. thank you for the implementation. but I have some questions about your code。
in this line:

self.meta_weight = self.weight - \

self.meta_weight = self.weight - \ lr * (self.calibrated_grads \ + (self.weight.grad.data - self.calibrated_grads.data).detach())
why not using the self.calibrated_grads directly? instead, you used the refine gradients: self.weight.grad.

furthermore, the weights have been updated in the main function using the refine gradients.
so i am very confused why using the refine gradients again!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions