Skip to content

Commit

Permalink
Documentation improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
avik-pal committed Jun 7, 2022
1 parent 160bad9 commit 78eb5fb
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/make.jl
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,10 @@ makedocs(;
"Advanced" => MAPPING["advanced"],
"Additional Examples" => "examples.md",
],
"How do I..." => [
"Convert my Flux model to Lux?" => "manual/flux_to_lux.md",
"Reuse parts of my Network? (aka Parameter Sharing)" => "manual/sharing_parameters.md",
],
"API" => [
"Layers" => "api/layers.md",
"Functional" => "api/functional.md",
Expand Down
1 change: 1 addition & 0 deletions docs/src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ Having a high-level overview of how this documentation is structured will help y

* `Introduction` -- Talks about why we wrote Lux and has pointers to frameworks in the extended julia ecosystem which might help users to get started with deep learning
* `Examples` -- Contain tutorials of varying complexity. These contain worked examples of solving problems with Lux. Start here if you are new to Lux, or you have a particular problem class you want to model.
* `How do I...` -- Contains short examples and how to guides.
* `API` -- Contains a complete list of the functions you can use in Lux. Look here if you want to know how to use a particular function.
* `Design Docs` -- Contains information for people contributing to Lux development or writing Lux extensions. Don't worry about this section if you are using Lux to formulate and solve problems as a user.

Expand Down
3 changes: 3 additions & 0 deletions docs/src/introduction/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,6 @@ We provide 2 abstract layers:
* *All layers are deterministic* given the parameter and state -- if the layer is supposed to be stochastic (say `Dropout`), the state must contain a seed which is then updated after the function call.
* **Easy Parameter Manipulation** -- Wondering why Flux doesn't have `WeightNorm`, `SpectralNorm`, etc. The implicit parameter handling makes it extremely hard to pass parameters around without mutations which AD systems don't like. With Lux implementing them is outright simple.

# Why not use Lux?


Empty file added docs/src/manual/flux_to_lux.md
Empty file.
4 changes: 4 additions & 0 deletions docs/src/manual/sharing_parameters.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# How do I Reuse Parts of my Network ? (aka Parameter Sharing)

This guide is taken from a [discourse question](https://discourse.julialang.org/t/siamese-network-in-lux-jl-re-using-parts-of-network/82013)

0 comments on commit 78eb5fb

Please sign in to comment.