File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -33,9 +33,10 @@ Recursively walks `dst` and `src` together using [`Functors.children`](@ref),
3333and calling `copyto!` on parameter arrays.
3434Non-array elements (such as activation functions) are not copied
3535and 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+ Inactive parameters can be encoded by using the boolean value `false` instead of an array.
37+ If `dst == false` and `src` is an all-zero array, no error will be raised (and no values copied);
38+ however, attempting to copy a non-zero array to an inactive parameter will throw an error.
39+ Likewise, copying `src == false` to any `dst` array is valid, but copying `src == true` will error.
3940
4041Throws an error when:
4142- `dst` and `src` do not share the same fields (at any level)
You can’t perform that action at this time.
0 commit comments