Skip to content

Commit

Permalink
Sneaky typo fix
Browse files Browse the repository at this point in the history
  • Loading branch information
christiangnrd committed Dec 4, 2024
1 parent 7b0a96d commit 9e27bb0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gradient.jl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ function gradient(f, args...; zero::Bool=true)
end
if Zygote.isderiving()
error("""`Flux.gradient` does not support use within a Zygote gradient.
If what you are doing worked on Flux < 0.14, then calling `Zygote.gradiet` directly should still work.
If what you are doing worked on Flux < 0.14, then calling `Zygote.gradient` directly should still work.
If you are writing new code, then Zygote over Zygote is heavily discouraged.
""")
end
Expand Down Expand Up @@ -175,7 +175,7 @@ function withgradient(f, args...; zero::Bool=true)
end
if Zygote.isderiving()
error("""`Flux.withgradient` does not support use within a Zygote gradient.
If what you are doing worked on Flux < 0.14, then calling `Zygote.gradiet` directly should still work.
If what you are doing worked on Flux < 0.14, then calling `Zygote.withgradient` directly should still work.
If you are writing new code, then Zygote over Zygote is heavily discouraged.
""")
end
Expand Down

0 comments on commit 9e27bb0

Please sign in to comment.