roflmaostc / DiffImageRotation.jl

Differentiable, CUDA supported, image rotation algorithm in Julia.
MIT License
4 stars 0 forks source link

Gradient broken on 1.10 #5

Closed roflmaostc closed 10 months ago

roflmaostc commented 10 months ago

Similar to https://github.com/sdobber/FluxArchitectures.jl/issues/60

Test gradients: Error During Test at /home/felix/.julia/dev/DiffImageRotation.jl/test/runtests.jl:78
  Got exception outside of a @test
  type Nothing has no field method
  Stacktrace:
    [1] getproperty(x::Nothing, f::Symbol)
      @ Base ./Base.jl:37
    [2] has_chain_rrule(T::Type)
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/chainrules.jl:21
    [3] #s85#1906
      @ ~/.julia/packages/Zygote/IoW2g/src/compiler/interface2.jl:20 [inlined]
    [4] var"#s85#1906"(::Any, ctx::Any, f::Any, args::Any)
      @ Zygote ./none:0
    [5] (::Core.GeneratedFunctionStub)(::UInt64, ::LineNumberNode, ::Any, ::Vararg{Any})
      @ Core ./boot.jl:602
    [6] _pullback(f::Function, args::Matrix{Float64})
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/interface.jl:34
    [7] pullback(f::Function, args::Matrix{Float64})
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/interface.jl:40
    [8] gradient(f::Function, args::Matrix{Float64})
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/interface.jl:75
    [9] macro expansion
      @ ~/.julia/dev/DiffImageRotation.jl/test/runtests.jl:86 [inlined]
   [10] macro expansion
      @ ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/Test/src/Test.jl:1577 [inlined]
   [11] top-level scope
      @ ~/.julia/dev/DiffImageRotation.jl/test/runtests.jl:80
   [12] include(fname::String)
      @ Base.MainInclude ./client.jl:489
   [13] top-level scope
      @ REPL[5]:1
   [14] eval
      @ Core ./boot.jl:385 [inlined]
   [15] eval_user_input(ast::Any, backend::REPL.REPLBackend, mod::Module)
      @ REPL ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:150
   [16] repl_backend_loop(backend::REPL.REPLBackend, get_module::Function)
      @ REPL ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:246
   [17] start_repl_backend(backend::REPL.REPLBackend, consumer::Any; get_module::Function)
      @ REPL ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:231
   [18] run_repl(repl::REPL.AbstractREPL, consumer::Any; backend_on_current_task::Bool, backend::Any)
      @ REPL ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:389
   [19] run_repl(repl::REPL.AbstractREPL, consumer::Any)
      @ REPL ~/.julia/juliaup/julia-1.10.0+0.x64.linux.gnu/share/julia/stdlib/v1.10/REPL/src/REPL.jl:375
   [20] (::Base.var"#1013#1015"{Bool, Bool, Bool})(REPL::Module)
      @ Base ./client.jl:432
   [21] #invokelatest#2
      @ Base ./essentials.jl:887 [inlined]
   [22] invokelatest
      @ Base ./essentials.jl:884 [inlined]
   [23] run_main_repl(interactive::Bool, quiet::Bool, banner::Bool, history_file::Bool, color_set::Bool)
      @ Base ./client.jl:416
   [24] exec_options(opts::Base.JLOptions)
      @ Base ./client.jl:333
   [25] _start()
      @ Base ./client.jl:552
roflmaostc commented 10 months ago

Ultimately depends on this: https://github.com/JuliaImages/ImageTransformations.jl/pull/168

Somehow blocks Zygote update