Skip to content

Commit f8ebead

Browse files
bors[bot]logankilpatrick
andauthoredOct 17, 2021
Merge #1749
1749: Fix @ Functors 404's r=DhairyaLGandhi a=logankilpatrick Related to #1745 Co-authored-by: Logan Kilpatrick <[email protected]>
2 parents ec8def6 + a1fd2c2 commit f8ebead

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎docs/src/models/advanced.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ Join(combine, paths...) = Join(combine, paths)
9797
```
9898
Notice that we parameterized the type of the `paths` field. This is necessary for fast Julia code; in general, `T` might be a `Tuple` or `Vector`, but we don't need to pay attention to what it specifically is. The same goes for the `combine` field.
9999

100-
The next step is to use [`Flux.@functor`](@ref) to make our struct behave like a Flux layer. This is important so that calling `params` on a `Join` returns the underlying weight arrays on each path.
100+
The next step is to use [`Functors.@functor`](@ref) to make our struct behave like a Flux layer. This is important so that calling `params` on a `Join` returns the underlying weight arrays on each path.
101101
```julia
102102
Flux.@functor Join
103103
```
@@ -151,7 +151,7 @@ model(xs)
151151

152152
Our custom `Split` layer will accept a single input, then pass the input through a separate path to produce multiple outputs.
153153

154-
We start by following the same steps as the `Join` layer: define a struct, use [`Flux.@functor`](@ref), and define the forward pass.
154+
We start by following the same steps as the `Join` layer: define a struct, use [`Functors.@functor`](@ref), and define the forward pass.
155155
```julia
156156
using Flux
157157
using CUDA

0 commit comments

Comments
 (0)
Please sign in to comment.