Skip to content

Error in last cell #2

Description

@SubhankarGhosh

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions