-
-
Notifications
You must be signed in to change notification settings - Fork 608
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
Documenting Design Patterns #891
Comments
Writing custom adjoints and intuition behind it. Maybe even a section on arbitrary code semantics ( |
Agreed, we definitely need to replace the backprop section that used to cover tracker. We don't want to duplicate all the Zygote docs, but some explanation in the context of Flux would be really helpful. |
I'd love some explanation on mutation in a model using |
An example of gradient clipping would be good too. |
@scheidan I think we should add some clipping layers (#672) but yes, giving people the know-how to do it themselves more generally is also a good idea of course. @merckxiaan Is there anything Flux-specific we should say about Buffer? It's probably worth at least mentioning, a long with a few other more advanced tricks that are documented by Zygote. |
I haven't got anything specific in mind but it'd be interesting to see a simple deep learning network that uses Buffers. |
Buffers are really just meant as a workaround when you want to do array construction using mutation. So you might use them inside the definition of a basic array op like |
Adding to that, not tracking parameters should be included there (or somewhere else) as well. |
Yes, that definitely also fits under "things we should have APIs for" too; added to the list. |
How about writing tutorial how to port tutorial codes from Tensorflow or Pytorch docs? Many other ML codes are written based on TF or torch and sometimes I was very confusing about how to convert them. For me, input set structure is most unfamiliar things compared to other frameworks. Without model-zoo, it is hard to use Flux.jl by reading its docs only. I think comparing other framework codes with Flux by 1vs1 would be helpful. |
Good idea. I think we could add "Flux for TF users" or "Flux for PyTorch users" guides as sections in the docs. Happy to help anyone who wants to contribute that. |
If no one is already working on it, then I would love to contribute on "Flux for TF users" ! |
That would be great! |
Automatic parameter extraction for custom types, via E.g., add this example from @dhairyagandhi96 to the docs, which shows how you can control what fields are added to the parameter tree:
|
Adding transfer learning examples would be good too |
Data loading + viz and TensorboardLogger.jl integration |
Thoughts on breaking this into smaller issues and creating a project board for them? I know some (e.g. RNNs, ecosystem) have been addressed already. |
A lot of what Flux can do is not explicitly written down. Regularisation is a good example; just grabbing your parameters and summing them is really simple and intuitive, but if you're used to frameworks that provide an explicit API for this, you might get not think of it, or assume it's not supported at all if it isn't in the docs.
So we need to document Flux "design patterns" that explicitly cover features from other frameworks. Some things off the top of my head:
Grads
)Ideas (or requests) for other features that we should document how to do are welcome.
The text was updated successfully, but these errors were encountered: