Giter VIP home page Giter VIP logo

Comments (7)

nicholas-leonard avatar nicholas-leonard commented on July 17, 2024

@sagarwaghmare69 Could you look into this when you have time?

from dpnn.

sagarwaghmare69 avatar sagarwaghmare69 commented on July 17, 2024

@jonathanasdf I am not able to reproduce the error. Can you please provide your code snippet ?

from dpnn.

sagarwaghmare69 avatar sagarwaghmare69 commented on July 17, 2024

Yes.

On Fri, Mar 11, 2016 at 3:37 PM, Nicholas Léonard [email protected]
wrote:

@sagarwaghmare69 https://github.com/sagarwaghmare69 Could you look into
this when you have time?


Reply to this email directly or view it on GitHub
#45 (comment)
.

from dpnn.

jonathanasdf avatar jonathanasdf commented on July 17, 2024

Apparently it randomly becomes 0, inf, or nan. Also, zeroGradParameters doesn't seem to do anything.

require 'dpnn'
require 'cutorch'

local m = nn.Sequential()
m:add(nn.FireModule(1,1,1,1))
_, p = m:getParameters()
print(p:sum())

m = m:cuda()
_, p = m:getParameters()
print(p:sum())

m:zeroGradParameters()
print(p:sum())

Some outputs (randomly one of these)

-1.5261873854701e+236
nan
nan
1.117789947961e+138
inf
inf
4.8518308672707e-309
0
0

from dpnn.

sagarwaghmare69 avatar sagarwaghmare69 commented on July 17, 2024

@jonathanasdf Thanks for reporting the bug and providing an example. I was able to reproduce the bug. We will fix it (latest by Monday evening). Thanks.

from dpnn.

nicholas-leonard avatar nicholas-leonard commented on July 17, 2024

@jonathanasdf fixed via #46 . Thanks @sagarwaghmare69

from dpnn.

jonathanasdf avatar jonathanasdf commented on July 17, 2024

Thank you for the fast fix!

from dpnn.

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.