Skip to content

Broken gradient due to multiple definitions #9

@Exoflo

Description

@Exoflo

Gradient fonction in ScatteringTransform\test\fluxtests.jl:42 has returned me an error due to multiple definitions in either Flux.jl and Zygote.jl
This can be easily solved by adding 'Zygote.' in front of the function

bizzare pooling sizes 1D i=40, s=6//5, nExtraDims=3, xExtraDims=2, k=4 N=2: Error During Test at c:
\Users\X\.julia\dev\ScatteringTransform\test\fluxtests.jl:20
  Got exception outside of a @test
  UndefVarError: "gradient" not defined in "Main"
  Hint: It looks like two or more modules export different bindings with this name, resulting in ambiguity. Try explicitly importing it from a particular module, or qualifying the name with the module it should come from.
  Hint: a global variable of this name may be made accessible by importing Interpolations in the current active module Main
  Hint: a global variable of this name also exists in Zygote.
  Hint: a global variable of this name also exists in Flux.
  Stacktrace:
   [1] macro expansion
     @ c:\Users\X\.julia\dev\ScatteringTransform\test\fluxtests.jl:42 [inlined]
   [2] macro expansion
     @ C:\Users\X\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1798 [inlined]
   [3] macro expansion
     @ c:\Users\X\.julia\dev\ScatteringTransform\test\fluxtests.jl:20 [inlined]
   [4] macro expansion
     @ C:\Users\X\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1709 [inlined]
   [5] macro expansion
     @ c:\Users\X\.julia\dev\ScatteringTransform\test\fluxtests.jl:17 [inlined]
   [6] macro expansion
     @ C:\Users\X\.julia\juliaup\julia-1.11.6+0.x64.w64.mingw32\share\julia\stdlib\v1.11\Test\src\Test.jl:1709 [inlined]
   [7] top-level scope
     @ c:\Users\X\.julia\dev\ScatteringTransform\test\fluxtests.jl:2
   [8] include(fname::String)
     @ Main .\sysimg.jl:38
   [9] top-level scope
     @ c:\Users\X\.julia\dev\ScatteringTransform\test\runtests.jl:11

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions