Git Product home page Git Product logo

adaptive_gd's People

Contributors

konstmish avatar ymalitsky avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

adaptive_gd's Issues

I have a question about the code in this repository, which I think is an error.

Hello, excuse me for asking out of the blue.

I am very interested in your paper and am now thinking about its development.

I have a question about the code in this repository, which I think is an error.

In adaptive_GD/pytorch/optimizers.py,

Line 39, "grad_dif_norm += (d_p - prev_d_p).norm().item() ** 2" is not be, "grad_dif_norm += (d_p - prev_d_p).pow(2).sum().item()"?

and also Line 40, "grad_dif_norm += (p.data - prev_p.data).norm().item() ** 2" is not be, "param_dif_norm += (p.data - prev_p.data).pow(2).sum().item()"?

This is because in torch.Tensor.norm(), all the elements of the tensor are squared, added together, and the square root is taken.

In the original code, the Euclidean norm of the difference of each layer parameter (or gradient) is found, the result is squared, the squared Euclidean norm of all layers is added, and the square root of the result is taken.

This is not the same as the formula in the paper, is it?

Lastly, I am sorry if my English is not good enough to convey my intentions well.

I hope you understand that I am not malicious in my questions and that I am asking them out of simple doubt and interest in your research.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.