Skip to content

Commit

Permalink
Update docs/src/models/advanced.md
Browse files Browse the repository at this point in the history
Co-authored-by: Kyle Daruwalla <daruwalla@wisc.edu>
  • Loading branch information
mcabbott and darsnack authored Jul 14, 2023
1 parent 7f2bc7a commit fa6a912
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/models/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ julia> Flux.params(Affine(true, [10, 11, 12.0]))
Params([])
```

It is also possible to further restrict what fields are seen by writing `@functor Affine (W,)`. However, this is not recommended. This requires the `struct` to have a corresponding constructor that accepts those parameters. And the contentes `gpu`
It is also possible to further restrict what fields are seen by writing `@functor Affine (W,)`. However, this is not recommended. This requires the `struct` to have a corresponding constructor that accepts only `W` as an argument, and the ignored fields will not be seen by functions like `gpu` (which is usually undesired).

## Freezing Layer Parameters

Expand Down

0 comments on commit fa6a912

Please sign in to comment.