{"action":"created","issue":{"url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/23","repository_url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl","labels_url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/23/labels{/name}","comments_url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/23/comments","events_url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/23/events","html_url":"https://github.com/jrevels/ReverseDiffPrototype.jl/issues/23","id":174992122,"number":23,"title":"Softmax function doesn't work","user":{"login":"domluna","id":1907223,"avatar_url":"https://avatars.githubusercontent.com/u/1907223?v=3","gravatar_id":"","url":"https://api.github.com/users/domluna","html_url":"https://github.com/domluna","followers_url":"https://api.github.com/users/domluna/followers","following_url":"https://api.github.com/users/domluna/following{/other_user}","gists_url":"https://api.github.com/users/domluna/gists{/gist_id}","starred_url":"https://api.github.com/users/domluna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/domluna/subscriptions","organizations_url":"https://api.github.com/users/domluna/orgs","repos_url":"https://api.github.com/users/domluna/repos","events_url":"https://api.github.com/users/domluna/events{/privacy}","received_events_url":"https://api.github.com/users/domluna/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-09-05T04:07:25Z","updated_at":"2016-09-06T15:06:55Z","closed_at":null,"body":"I'm testing out some neural nets stuff and I found an error when doing softmax function.\r\n\r\nhttps://gist.github.com/domluna/bf1d3061244e7d7d9a3da467a6614006\r\n\r\nI commented out quite a bit to try get a minimal example. The softmax function isn't correct since sum over dimensions isn't yet implemented so changed it to just `sum(exped)` to try to make it work.\r\n\r\n```\r\nERROR: LoadError: MethodError: no method matching eachindex(::ReverseDiffPrototype.TraceReal{Float64,Float64})\r\nClosest candidates are:\r\n  eachindex(::Tuple) at tuple.jl:19\r\n  eachindex(::Tuple, ::Tuple...) at tuple.jl:22\r\n  eachindex(::AbstractArray{T,1}) at abstractarray.jl:679\r\n  ...\r\n in propagate_adjoint!(::ReverseDiffPrototype.TraceReal{Float64,Float64}, ::ReverseDiffPrototype.TraceReal{Float64,Float64}) at /Users/dluna/.julia/v0.5/ReverseDiffPrototype/src/backprop.jl:82\r\n in special_backprop_step!(::Base.Broadcast.#broadcast, ::Tuple{Array{ReverseDiffPrototype.TraceReal{Float64,Float64},2},ReverseDiffPrototype.TraceReal{Float64,Float64}}, ::ReverseDiffPrototype.TraceReal{Float64,Float64}, ::ReverseDiffPrototype.TraceReal{Float64,Float64}) at /Users/dluna/.julia/v0.5/ReverseDiffPrototype/src/backprop.jl:74\r\n in backprop_step!(::ReverseDiffPrototype.TraceNode{Base.Broadcast.#broadcast,Tuple{Array{ReverseDiffPrototype.TraceReal{Float64,Float64},2},ReverseDiffPrototype.TraceReal{Float64,Float64}},ReverseDiffPrototype.TraceReal{Float64,Float64},ReverseDiffPrototype.TraceReal{Float64,Float64}}) at /Users/dluna/.julia/v0.5/ReverseDiffPrototype/src/backprop.jl:20\r\n in backprop!(::Array{ReverseDiffPrototype.TraceNode,1}) at /Users/dluna/.julia/v0.5/ReverseDiffPrototype/src/backprop.jl:14\r\n in gradient(::##243#245{Array{Float64,2},Array{Float64,2},Array{Int64,1}}, ::Array{Float64,2}, ::Array{ReverseDiffPrototype.TraceReal{Float64,Float64},2}) at /Users/dluna/.julia/v0.5/ReverseDiffPrototype/src/api.jl:8\r\n in nn_backward(::Array{Float64,2}, ::Array{Float64,2}, ::Array{Float64,2}, ::Array{Int64,1}) at /Users/dluna/.julia/v0.5/Butterfly/src/rdp.jl:34\r\n in include_from_node1(::String) at ./loading.jl:426\r\n in include_from_node1(::String) at /Applications/Julia-0.5.app/Contents/Resources/julia/lib/julia/sys.dylib:?\r\nwhile loading /Users/dluna/.julia/v0.5/Butterfly/src/rdp.jl, in expression starting on line 39\r\n```"},"comment":{"url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/comments/244980977","html_url":"https://github.com/jrevels/ReverseDiffPrototype.jl/issues/23#issuecomment-244980977","issue_url":"https://api.github.com/repos/jrevels/ReverseDiffPrototype.jl/issues/23","id":244980977,"user":{"login":"jrevels","id":3277443,"avatar_url":"https://avatars.githubusercontent.com/u/3277443?v=3","gravatar_id":"","url":"https://api.github.com/users/jrevels","html_url":"https://github.com/jrevels","followers_url":"https://api.github.com/users/jrevels/followers","following_url":"https://api.github.com/users/jrevels/following{/other_user}","gists_url":"https://api.github.com/users/jrevels/gists{/gist_id}","starred_url":"https://api.github.com/users/jrevels/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jrevels/subscriptions","organizations_url":"https://api.github.com/users/jrevels/orgs","repos_url":"https://api.github.com/users/jrevels/repos","events_url":"https://api.github.com/users/jrevels/events{/privacy}","received_events_url":"https://api.github.com/users/jrevels/received_events","type":"User","site_admin":false},"created_at":"2016-09-06T15:06:54Z","updated_at":"2016-09-06T15:06:54Z","body":"Ah, you're running into a bug [that I recently fixed](https://github.com/jrevels/ReverseDiffPrototype.jl/commit/7df795408dcab9e4ba7017a782d9a80a4614d7ac), but haven't merged the fix for yet.\r\n\r\nI'll close this once that fix gets merged."}}
{"actor":{"display_login":"jrevels"}}