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

[ITensors] [BUG] CI test fails for Julia 1.9 in test/ITensorChainRules/test_chainrules_ops.jl #1127

Closed
JanReimers opened this issue May 24, 2023 · 1 comment
Labels
bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package.

Comments

@JanReimers
Copy link
Contributor

JanReimers commented May 24, 2023

ITensor main branch: CI test fails for Julia 1.9 in test/ITensorChainRules/test_chainrules_ops.jl.
Partial stack dump:

test_rrule: #215 on Float64: Error During Test at /home/janr/.julia/packages/ChainRulesTestUtils/lERVj/src/testers.jl:202
  Got exception outside of a @test
  TypeError: in typeassert, expected Tuple{T, T} where T, got a value of type Tuple{Tangent{Any, NamedTuple{(:which_op, :sites, :params), Tuple{ZeroTangent, ZeroTangent, Tangent{Any, NamedTuple{(,), Tuple{Float64}}}}}}, ZeroTangent}
  Stacktrace:
    [1] _totuple
      @ ./tuple.jl:386 [inlined]
    [2] Tuple
      @ ./tuple.jl:369 [inlined]
    [3] vect_pullback
      @ ~/.julia/packages/ChainRules/aKxNz/src/rulesets/Base/array.jl:41 [inlined]
    [4] (::Zygote.ZBack{ChainRules.var"#vect_pullback#1367"{2}})(dy::Vector{Union{Nothing, NamedTuple{(:which_op, :sites, :params), Tuple{Nothing, Nothing, NamedTuple{(,), Tuple{Float64}}}}}})
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/chainrules.jl:205
    [5] Pullback
      @ ~/.julia/dev/ITensors/src/Ops/Ops.jl:188 [inlined]
    [6] (::typeof((+)))(Δ::NamedTuple{(:f, :args, :kwargs), Tuple{Nothing, Tuple{Vector{Union{Nothing, NamedTuple{(:which_op, :sites, :params), Tuple{Nothing, Nothing, NamedTuple{(,), Tuple{Float64}}}}}}}, Nothing}})
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/interface2.jl:0
    [7] Pullback
      @ ~/.julia/dev/ITensors/test/ITensorChainRules/test_chainrules_ops.jl:47 [inlined]
    [8] (::typeof((#215)))(Δ::Float64)
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/interface2.jl:0
    [9] (::Zygote.var"#ad_pullback#58"{Tuple{var"#215#235", Float64}, typeof((#215))})(Δ::Float64)
      @ Zygote ~/.julia/packages/Zygote/IoW2g/src/compiler/chainrules.jl:257
   [10] macro expansion
      @ ~/.julia/packages/ChainRulesTestUtils/lERVj/src/testers.jl:221 [inlined]
   [11] macro expansion
      @ /opt/julia-1.9.0/share/julia/stdlib/v1.9/Test/src/Test.jl:1498 [inlined]
   [12] test_rrule(::RuleConfig, ::Any, ::Any, ::Vararg{Any}; output_tangent::Any, check_thunked_output_tangent::Any, fdm::Any, rrule_f::Any, check_inferred::Bool, fkwargs::NamedTuple, rtol::Real, atol::Real, testset_name::Any, kwargs::Base.Pairs{Symbol, V, Tuple{Vararg{Symbol, N}}, NamedTuple{names, T}} where {V, N, names, T<:Tuple{Vararg{Any, N}}})
      @ ChainRulesTestUtils ~/.julia/packages/ChainRulesTestUtils/lERVj/src/testers.jl:205
   [13] macro expansion
      @ ~/.julia/dev/ITensors/test/ITensorChainRules/test_chainrules_ops.jl:51 [inlined]

Version information

julia> versioninfo()
Julia Version 1.9.0
Commit 8e630552924 (2023-05-07 11:25 UTC)
Platform Info:
  OS: Linux (x86_64-linux-gnu)
  CPU: 4 × Intel(R) Core(TM) i5-3470 CPU @ 3.20GHz
  WORD_SIZE: 64
  LIBM: libopenlibm
  LLVM: libLLVM-14.0.6 (ORCJIT, ivybridge)
  Threads: 4 on 4 virtual cores
Environment:
  LD_LIBRARY_PATH = :/usr/local/HDF_Group/HDF5/1.12.1/lib/
  JULIA_EDITOR = code
  JULIA_NUM_THREADS = 4
  JULIA_IMAGE_THREADS = 1

 julia> Pkg.status("ITensors")
Status `~/.julia/environments/v1.9/Project.toml`
  [9136182c] ITensors v0.3.34 `~/.julia/dev/ITensors`
@JanReimers JanReimers added bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package. labels May 24, 2023
@mtfishman
Copy link
Member

Closed by #1135.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working ITensors Issues or pull requests related to the `ITensors` package.
Projects
None yet
Development

No branches or pull requests

2 participants