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

Error in last cell #2

Open
SubhankarGhosh opened this issue Dec 6, 2018 · 0 comments
Open

Error in last cell #2

SubhankarGhosh opened this issue Dec 6, 2018 · 0 comments

Comments

@SubhankarGhosh
Copy link

While running the last cell I'm getting this error:

MethodError: Cannot convert an object of type AutoGrad.Rec{Array{Float64,4}} to an object of type Array
This may have arisen from a call to the constructor Array(...),
since type constructors fall back to convert methods.

Stacktrace:
[1] tv_loss(::AutoGrad.Rec{Array{Float64,4}}, ::Float64) at ./In[10]:12
[2] loss(::AutoGrad.Rec{Array{Float64,4}}, ::Float64, ::Int64, ::Array{Float64,4}, ::NTuple{5,Int64}, ::Array{Any,1}, ::Array{Float64,1}, ::Float64) at ./In[11]:6
[3] forward_pass(::Function, ::Tuple{Array{Float64,4},Float64,Int64,Array{Float64,4},NTuple{5,Int64},Array{Any,1},Array{Float64,1},Float64}, ::Array{Any,1}, ::Int64) at /home/subhankar/.julia/v0.6/AutoGrad/src/core.jl:88
[4] (::AutoGrad.##gradfun#4#6{#loss,Int64})(::Array{Any,1}, ::Function, ::Array{Float64,4}, ::Vararg{Any,N} where N) at /home/subhankar/.julia/v0.6/AutoGrad/src/core.jl:57
[5] (::AutoGrad.#gradfun#5)(::Array{Float64,4}, ::Vararg{Any,N} where N) at /home/subhankar/.julia/v0.6/AutoGrad/src/core.jl:57
[6] style_transfer(::String, ::String, ::Int64, ::Int64, ::Int64, ::Float64, ::NTuple{5,Int64}, ::Array{Float64,1}, ::Float64, ::Bool) at ./In[12]:60
[7] style_transfer(::String, ::String, ::Int64, ::Int64, ::Int64, ::Float64, ::NTuple{5,Int64}, ::Array{Float64,1}, ::Float64) at ./In[12]:25
[8] include_string(::String, ::String) at ./loading.jl:522
[9] execute_request(::ZMQ.Socket, ::IJulia.Msg) at /home/subhankar/.julia/v0.6/IJulia/src/execute_request.jl:193
[10] (::Compat.#inner#6{Array{Any,1},IJulia.#execute_request,Tuple{ZMQ.Socket,IJulia.Msg}})() at /home/subhankar/.julia/v0.6/Compat/src/Compat.jl:189
[11] eventloop(::ZMQ.Socket) at /home/subhankar/.julia/v0.6/IJulia/src/eventloop.jl:8
[12] (::IJulia.##13#16)() at ./task.jl:335

I'm on Julia 0.6.4 running on Elementary OS 5

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

1 participant