From fa6a912400897a5b661b04fde67247f45beff015 Mon Sep 17 00:00:00 2001 From: Michael Abbott <32575566+mcabbott@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:36:51 -0400 Subject: [PATCH] Update docs/src/models/advanced.md Co-authored-by: Kyle Daruwalla --- docs/src/models/advanced.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/src/models/advanced.md b/docs/src/models/advanced.md index b6912ec160..b7161b8c59 100644 --- a/docs/src/models/advanced.md +++ b/docs/src/models/advanced.md @@ -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