Skip to content

Commit 995778d

Browse files
authored
fix the link (#1265)
1 parent ed84d53 commit 995778d

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

docs/src/limitations.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ the elements of arrays in-place (e.g. setting values with x .= ...)
3333
Possible fixes:
3434
- avoid mutating operations (preferred)
3535
- or read the documentation and solutions for this error
36-
https://fluxml.ai/Zygote.jl/dev/limitations.html#Array-mutation
36+
https://fluxml.ai/Zygote.jl/latest/limitations
3737

3838
Stacktrace:
3939
...
@@ -94,7 +94,7 @@ julia> gradient(rand(3)) do x
9494
end
9595
ERROR: Compiling Tuple{typeof(tryme), Vector{Float64}}: try/catch is not supported.
9696
Refer to the Zygote documentation for fixes.
97-
https://fluxml.ai/Zygote.jl/dev/limitations.html#try-catch-statements-1
97+
https://fluxml.ai/Zygote.jl/latest/limitations
9898

9999
Stacktrace:
100100
...
@@ -116,7 +116,7 @@ julia> jclock(2)
116116
julia> gradient(jclock, rand())
117117
ERROR: Can't differentiate foreigncall expression
118118
You might want to check the Zygote limitations documentation.
119-
https://fluxml.ai/Zygote.jl/dev/limitations.html
119+
https://fluxml.ai/Zygote.jl/latest/limitations
120120

121121
Stacktrace:
122122
...

src/compiler/reverse.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function instrument(ir::IR)
120120
elseif isexpr(ex, :enter, :leave)
121121
error("""try/catch is not supported.
122122
Refer to the Zygote documentation for fixes.
123-
https://fluxml.ai/Zygote.jl/dev/limitations.html#Try-catch-statements-1
123+
https://fluxml.ai/Zygote.jl/latest/limitations
124124
""")
125125
elseif isexpr(ex, :(=))
126126
@assert ex.args[1] isa GlobalRef
@@ -283,7 +283,7 @@ function adjoint(pr::Primal)
283283
push!(rb, stmt(xcall(Base, :error, """
284284
Can't differentiate $(ex.head) expression.
285285
You might want to check the Zygote limitations documentation.
286-
https://fluxml.ai/Zygote.jl/dev/limitations.html
286+
https://fluxml.ai/Zygote.jl/latest/limitations
287287
"""),
288288
line = b[v].line))
289289
else # A literal value

src/lib/array.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ the elements of arrays in place (e.g. setting values with x .= ...)
7575
Possible fixes:
7676
- avoid mutating operations (preferred)
7777
- or read the documentation and solutions for this error
78-
https://fluxml.ai/Zygote.jl/dev/limitations.html#Array-mutation-1
78+
https://fluxml.ai/Zygote.jl/latest/limitations
7979
""")
8080

8181
@adjoint! setindex!(xs::AbstractArray, x...) = setindex!(xs, x...),

0 commit comments

Comments
 (0)