Skip to content

Commit

Permalink
Merge branch 'main' of https://www.github.com/google/flax into pipy
Browse files Browse the repository at this point in the history
  • Loading branch information
marcvanzee committed Jan 27, 2022
2 parents 5de87fa + a6e7744 commit 695a880
Show file tree
Hide file tree
Showing 54 changed files with 309 additions and 7,438 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ vNext
Breaking changes:
- flax.deprecated.nn is removed. Please pin to flax==0.3.6 if you are still using it.
- PixelCNN++ example is removed. It was not working well on TPU.
- linen Normalization layers no longer downcast double and complex floats tofloat32
when computing the mean and variance.

New features:
- Added `flax.linen.custom_vjp` for custom derivatives inside a `Module`.
Expand Down
8 changes: 4 additions & 4 deletions docs/design_notes/arguments.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,9 @@ It also avoids a default value which would probably cause either the train step



## Functional Core and flax.nn
## Functional Core

The old NN api and functional core define functions rather than classes.
Therefore, there is no clear distinction between hyper parameters and call time arguments.
The only way to pre-determine the hyper parameters is by using `partial`.
Functional core defines functions rather than classes.
Therefore, there is no clear distinction between hyperparameters and call-time arguments.
The only way to pre-determine the hyperparameters is by using `partial`.
On the upside, there are no ambiguous cases where method arguments could also be attributes.
115 changes: 0 additions & 115 deletions docs/flax.nn.rst

This file was deleted.

Loading

0 comments on commit 695a880

Please sign in to comment.