Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

0.4.0 #5

Merged
merged 25 commits into from
Sep 13, 2021
Merged

0.4.0 #5

merged 25 commits into from
Sep 13, 2021

Conversation

cgarciae
Copy link
Owner

@cgarciae cgarciae commented Sep 5, 2021

Changes

  • Optimizer now flattens its params to be agnostic to the static components of the pytree.
  • Generic types containing TreeParts are no longer valid type annotation as types like Tuple[int, tx.State[int]] make it appear as if the first element of the tuple where static and the second dynamic, when in fact Treex would treat to whole field as dynamic. Now your only option is tx.State[Tuple[int, int]].
  • Adds the tx.Hashable class to wrap non-hashable types like numpy or jax arrays when you want to use them in static fields of a TreeObject.
  • Adds FlaxModule: can wrap any Flax Module into a Treex Module.
  • tabulate now accepts a sample_input and will show the input and output columns.
  • Refactors a lot of the functional API.
  • Introduces .freeze(), .unfreeze() and .frozen similar to train/eval/training.
  • Updates BatchNorm and Dropout to leverage .frozen.

@cgarciae cgarciae changed the title Improve Optimizer 0.4.0 Sep 13, 2021
@cgarciae cgarciae merged commit d58d0d3 into master Sep 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant