Skip to content

Commit b2d0dc0

Browse files
fix import
1 parent c85362c commit b2d0dc0

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Flux.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ using Zygote, MacroTools, Juno, Reexport
88
using MacroTools: @forward
99
@reexport using NNlib
1010
using Zygote: Params, @adjoint, gradient, pullback, @nograd
11-
using Functors: @functor, functor, fmap, isleaf
11+
using Functors
12+
using Functors: @functor, functor, fmap
1213
export gradient
1314

1415
export Chain, Dense, Maxout, SkipConnection, Parallel, flatten,

src/layers/basic.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ end
4141
@forward Chain.layers Base.getindex, Base.length, Base.first, Base.last,
4242
Base.iterate, Base.lastindex, Base.keys
4343

44-
functor(::Type{<:Chain}, c) = c.layers, ls -> Chain(ls...)
44+
Functors.functor(::Type{<:Chain}, c) = c.layers, ls -> Chain(ls...)
4545

4646
applychain(::Tuple{}, x) = x
4747
applychain(fs::Tuple, x) = applychain(tail(fs), first(fs)(x))

0 commit comments

Comments
 (0)