Giter Site home page Giter Site logo

Comments (1)

YimianDai avatar YimianDai commented on August 24, 2024

这个问题,我在另外一个 issue 已经回答过了,https://github.com/YimianDai/open-aff/issues/3。

我没有想过「防止数值太小梯度消失」这回事。既然有了 batch normalization,我相信乘不乘 2 是不会有影响的。简单的说,就是为了保证跟 X + Y 一样,两者前面的系数总和为 (1 + 1 = 2),所以乘了一个 2。

至于 iAFF 没用,因为我不觉得乘不乘 2 会有什么影响,所以写得时候没注意这个。刚开始写代码的时候写得随意了,类的名称也没有好好取,跑完实验后才发现 params 里面跟代码里的名称绑死了,如果为了美化代码要改名称,那必须重跑实验。因为 GPU 资源有限,所以我就没重跑,现在的代码就是最初的样子,所以写得随意了些。。。

from open-aff.

Related Issues (20)

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.