Skip to content

Fix year of reference #89

Fix year of reference

Fix year of reference #89

Triggered via push September 17, 2023 16:09
Status Cancelled
Total duration 54m 12s
Artifacts
This run and associated checks have been archived and are scheduled for deletion. Learn more about checks retention

Documenter.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 2 warnings
Documenter
The operation was canceled.
Documenter: ../../../.julia/packages/Documenter/nGNwI/src/utilities/utilities.jl#L46
failed to run `@example` block in src/examples/ad-tn.md:10-25 ```@example autodiff using Tenet using Zygote using Random: seed! # hide rng = seed!(4) # hide ψ = rand(MPS{Open}, n = 4, p = 2, χ = 2) ϕ = rand(MPS{Open}, n = 4, p = 2, χ = 4) ψ = rand(rng, MPS{Open}, n = 4, p = 2, χ = 2) # hide ϕ = rand(rng, MPS{Open}, n = 4, p = 2, χ = 4) # hide tn = hcat(ψ, ϕ) plot(tn) # hide ``` exception = ArgumentError: Package Zygote not found in current path. - Run `import Pkg; Pkg.add("Zygote")` to install the Zygote package. Stacktrace: [1] macro expansion @ ./loading.jl:1630 [inlined] [2] macro expansion @ ./lock.jl:267 [inlined] [3] require(into::Module, mod::Symbol) @ Base ./loading.jl:1611 [4] eval @ ./boot.jl:370 [inlined] [5] #54 @ ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:738 [inlined] [6] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [7] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:737 [8] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [9] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [10] with_logger @ ./logging.jl:626 [inlined] [11] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [12] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:736
Documenter: ../../../.julia/packages/Documenter/nGNwI/src/utilities/utilities.jl#L46
failed to run `@example` block in src/examples/ad-tn.md:44-69 ```@example autodiff η = 0.01 @time losses = map(1:200) do it # compute gradient loss, ∇ = withgradient(Params(arrays(ψ))) do ((contract(tn) |> first) - 1)^2 end # direct gradient descent for array in arrays(ψ) array .-= η * ∇[array] end # normalize state normalize!(ψ) return loss end f = Figure() # hide ax = Axis(f[1, 1], yscale = log10, xscale = identity, xlabel="Iterations") # hide lines!(losses, label="Loss") # hide lines!(map(x -> 1 - sqrt(x), losses), label="Overlap") # hide f[1,2] = Legend(f, ax, framevisible=false) # hide f # hide ``` exception = UndefVarError: `ψ` not defined Stacktrace: [1] (::Main.__atexample__named__autodiff.var"#1#3")(it::Int64) @ Main.__atexample__named__autodiff ./ad-tn.md:48 [2] iterate @ ./generator.jl:47 [inlined] [3] _collect(c::UnitRange{Int64}, itr::Base.Generator{UnitRange{Int64}, Main.__atexample__named__autodiff.var"#1#3"}, #unused#::Base.EltypeUnknown, isz::Base.HasShape{1}) @ Base ./array.jl:802 [4] collect_similar(cont::UnitRange{Int64}, itr::Base.Generator{UnitRange{Int64}, Main.__atexample__named__autodiff.var"#1#3"}) @ Base ./array.jl:711 [5] map(f::Function, A::UnitRange{Int64}) @ Base ./abstractarray.jl:3263 [6] top-level scope @ ./timing.jl:273 [7] eval @ ./boot.jl:370 [inlined] [8] #54 @ ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:738 [inlined] [9] cd(f::Documenter.var"#54#56"{Module, Expr}, dir::String) @ Base.Filesystem ./file.jl:112 [10] (::Documenter.var"#53#55"{Documenter.Page, Module, Expr})() @ Documenter ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:737 [11] (::IOCapture.var"#3#5"{DataType, Documenter.var"#53#55"{Documenter.Page, Module, Expr}, Task, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}, IOContext{Base.PipeEndpoint}})() @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:119 [12] with_logstate(f::Function, logstate::Any) @ Base.CoreLogging ./logging.jl:514 [13] with_logger @ ./logging.jl:626 [inlined] [14] capture(f::Documenter.var"#53#55"{Documenter.Page, Module, Expr}; rethrow::Type, color::Bool) @ IOCapture ~/.julia/packages/IOCapture/8Uj7o/src/IOCapture.jl:116 [15] runner(#unused#::Type{Documenter.Expanders.ExampleBlocks}, node::MarkdownAST.Node{Nothing}, page::Documenter.Page, doc::Documenter.Document) @ Documenter ~/.julia/packages/Documenter/nGNwI/src/expander_pipeline.jl:736