Skip to content

Commit

Permalink
rm note
Browse files Browse the repository at this point in the history
  • Loading branch information
mcabbott committed Mar 2, 2024
1 parent fe72081 commit 63e10f6
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions docs/src/models/advanced.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,7 @@ The exact same method of `trainable` can also be defined using the macro, for co
Flux.@layer Affine trainable=(W,)
```

There is a second, more severe, kind of restriction possible:

```
Flux.@layer Affine children=(W,)
```

This is equivalent to `Functors.@functor Affine (W,)`. It means that all no exploration of the model will ever visit the other fields: They will not be moved to the GPU by [`gpu`](@ref), and their precision will not be changed by `f32`. This is not usually recommended.
This is generally not recommended. It requires the `struct` to have a corresponding constructor that accepts only `W` as an argument.
There is a second, more severe, kind of restriction possible. This is not recommended, but is included here for completeness. Calling `Functors.@functor Affine (W,)` means that all no exploration of the model will ever visit the other fields: They will not be moved to the GPU by [`gpu`](@ref), and their precision will not be changed by `f32`. This requires the `struct` to have a corresponding constructor that accepts only `W` as an argument.


## Freezing Layer Parameters
Expand Down

0 comments on commit 63e10f6

Please sign in to comment.