Skip to content

Commit

Permalink
remove duplicate functor docstring (it's in Functors section)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Nov 28, 2022
1 parent 473bba5 commit 1b6dd34
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/src/models/basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ m(5) # => 26

## Layer Helpers

There is still one problem with this `Affine` layer, that Flux does not know to look inside it. This means that [`Flux.train!`](@ref) won't see its parameters, nor will [`gpu`](@ref) be able to move them to your GPU. These features are enabled by the `@functor` macro:
There is still one problem with this `Affine` layer, that Flux does not know to look inside it. This means that [`Flux.train!`](@ref) won't see its parameters, nor will [`gpu`](@ref) be able to move them to your GPU. These features are enabled by the [`@functor`](@ref Functors.@functor) macro:

```
Flux.@functor Affine
Expand All @@ -232,6 +232,5 @@ Affine(3 => 1, bias=false, init=ones) |> gpu
```

```@docs
Functors.@functor
Flux.create_bias
```

0 comments on commit 1b6dd34

Please sign in to comment.