Skip to content

Commit

Permalink
typos
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 5, 2024
1 parent 6310548 commit 557ad49
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ext/FluxEnzymeExt/FluxEnzymeExt.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module FluxEnzymeExt

using Flux
import Flux.Train: _make_zero!, _enzyme_train!, _rule_to_state
using Flux: _make_zero!
import Flux.Train: _enzyme_train!, _rule_to_state
import Flux.Optimise
import Optimisers
import Enzyme
Expand Down
2 changes: 1 addition & 1 deletion src/train.jl
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ function setup(rule::Optimisers.AbstractRule, model)
state
end

setup(rule, model::Duplicated) = setup(rule, model.val)
setup(rule::Optimisers.AbstractRule, model::Duplicated) = setup(rule, model.val)

"""
train!(loss, model, data, opt_state)
Expand Down

0 comments on commit 557ad49

Please sign in to comment.