-
-
Notifications
You must be signed in to change notification settings - Fork 16
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
@functor needs better documentation #29
Comments
Relevant FluxML/Flux.jl#1028 |
One thing about functor(x::AbstractArray) = x, y -> y it returns a So:
|
For anyone happening upon this issue, the Functors README has a good explanation of what's returned and what it's all used for. In this case, |
the documentation has improved a lot since then. open a new issue if something is still amiss |
I was studying the Flux source code how to create me own layer types.
I came across the macro
@functor
whose purpose remained unclear to me. After asking in Slack it was signaled to me that those question comes up a lot and that it should be answered here.I could imagine the documentation taking these forms:
@functor
in docs and explain when you need it and what for@functor
as opposed to functor being out of context and vague at the end of the page. The tutorial should enable the user to develop a first-class flux layer.The text was updated successfully, but these errors were encountered: