-
-
Notifications
You must be signed in to change notification settings - Fork 611
Better docs for reexported packages #2046
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 3 commits
111ee92
7b03e51
2fe8c10
82f8d81
5974f30
76902d9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# MLUtils.jl | ||
# Working with data using MLUtils.jl | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can't comment below, but https://fluxml.ai/Flux.jl/latest/models/layers/#Flux.flatten Should it be removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah, yes! Thanks! There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correction: |
||
|
||
Flux re-exports the `DataLoader` type and utility functions for working with | ||
data from [MLUtils](https://github.com/JuliaML/MLUtils.jl). | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
# Functors.jl | ||
# Recursive transformations from Functors.jl | ||
|
||
Flux makes use of the [Functors.jl](https://github.com/FluxML/Functors.jl) to represent many of the core functionalities it provides. | ||
Flux models are deeply nested structures, and [Functors.jl](https://github.com/FluxML/Functors.jl) provides tools needed to explore such objects, apply functions to the parameters they contain, and re-build them. | ||
|
||
Functors.jl is a collection of tools designed to represent a [functor](https://en.wikipedia.org/wiki/Functor_(functional_programming)). Flux makes use of it to treat certain structs as functors. Notable examples include the layers that Flux defines. | ||
More precisely, using the `Functors.@functor` macro allows `Flux` layers to access additional functionalities, like collecting parameters or scaling them to the GPU. | ||
|
||
Functors.jl is a collection of tools designed to represent a [functor](https://en.wikipedia.org/wiki/Functor_(functional_programming)). Flux makes use of it to treat certain structs as functors. Notable examples include the layers that Flux defines. The basic usage of `Functors.jl` can be found [here](https://fluxml.ai/Functors.jl/stable/#Basic-Usage-and-Implementation). | ||
Saransh-cpp marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
```@docs | ||
Functors.@functor | ||
Functors.fmap | ||
Functors.isleaf | ||
Functors.children | ||
Functors.fcollect | ||
Functors.functor | ||
Functors.@functor | ||
Functors.fmap | ||
Functors.fmapstructure | ||
``` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One more thought. Should Zygote.jl be among the packages which gets a sidebar heading?