From 9e27bb077223837859b6094cd3c7eb9a9363171c Mon Sep 17 00:00:00 2001 From: Christian Guinard <28689358+christiangnrd@users.noreply.github.com> Date: Tue, 3 Dec 2024 23:08:31 -0400 Subject: [PATCH] Sneaky typo fix --- src/gradient.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gradient.jl b/src/gradient.jl index 57b08416a0..40d58cf933 100644 --- a/src/gradient.jl +++ b/src/gradient.jl @@ -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 @@ -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