File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,16 @@ Copy all the parameters (trainable and non-trainable) from `src` into `dst`.
31
31
32
32
Recursively walks `dst` and `src` together using [`Functors.children`](@ref),
33
33
and calling `copyto!` on parameter arrays.
34
- Non-array elements (such as activation functions) need not match.
35
- An all-zero bias array can be copied to or from absent bias, encoded `bias = false`.
34
+ Non-array elements (such as activation functions) are not copied
35
+ and do not need to match between `dst` and `src`.
36
+ Inactive parameters, encoded by `false` in place on an array,
37
+ can be copied to and from all-zero arrays.
38
+ Attempting to copy a non-zero array to/from an inactive parameter will throw an error.
36
39
37
40
Throws an error when:
38
41
- `dst` and `src` do not share the same fields (at any level)
39
42
- the sizes of leaf nodes are mismatched between `dst` and `src`
40
- - `dst` is a "tied" parameter (e.g. `transpose` of another parameter) and
43
+ - `dst` is a "tied" parameter (i.e. refers to another parameter) and
41
44
loaded into multiple times with mismatched source values
42
45
43
46
```julia
You can’t perform that action at this time.
0 commit comments