Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nothing in update! #5

Open
denizyuret opened this issue Oct 22, 2019 · 3 comments
Open

nothing in update! #5

denizyuret opened this issue Oct 22, 2019 · 3 comments

Comments

@denizyuret
Copy link
Member

I got:

julia> Morse.main(split("--dataSet TRDataSet --version 2006 --epochs 1 --lemma --dropouts 0.3 --patience 6"))
ERROR: MethodError: update!(::Knet.KnetArray{Float32,3}, ::Nothing, ::Knet.SGD) is ambiguous. Candidates:                            
  update!(w::Knet.KnetArray{Float32,N} where N, g, p::Knet.SGD) in Knet at /kuacc/users/dyuret/.julia/dev/Knet/src/update.jl:475     
  update!(w::Knet.KnetArray{Float32,N} where N, g::Nothing, p) in Knet at /kuacc/users/dyuret/.julia/dev/Knet/src/update.jl:547      
Possible fix, define                                                                                                                 
  update!(::Knet.KnetArray{Float32,N} where N, ::Nothing, ::Knet.SGD)                                                                

which I worked around by defining:

Knet.update!(w::KnetArray{Float32}, ::Nothing, ::Knet.SGD) = w

We can open an issue to Knet about this later. But here my question is: are we expecting nothing gradients in normal operation or is this pointing to a bug?

@denizyuret
Copy link
Member Author

@ekinakyurek is this behavior normal?

@ekinakyurek
Copy link
Contributor

no, it never happened. This is a problem.In which experiment it happens?

@denizyuret
Copy link
Member Author

denizyuret commented Oct 28, 2019 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants