Skip to content

Commit

Permalink
Removes flax.optim & bumps version to 0.6.0
Browse files Browse the repository at this point in the history
This fixes #2273

PiperOrigin-RevId: 459485412
  • Loading branch information
andsteing authored and Flax Authors committed Jul 12, 2022
1 parent e57133c commit 72cf73d
Show file tree
Hide file tree
Showing 19 changed files with 14 additions and 1,760 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ vNext
-
-

0.6.0
-----

- Removes deprecated optimizers in `flax.optim` package.

0.5.2
-----
- Fixes missing PyYAML dependecy.
Expand Down
40 changes: 0 additions & 40 deletions docs/flax.optim.rst

This file was deleted.

2 changes: 1 addition & 1 deletion docs/howtos/optax_update_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Upgrading my Codebase to Optax
We have proposed to replace :py:mod:`flax.optim` with `Optax
<https://optax.readthedocs.io>`_ in 2021 with `FLIP #1009
<https://github.com/google/flax/blob/main/docs/flip/1009-optimizer-api.md>`_ and
the Flax optimizers are now *effectively deprecated*. This guide is targeted
the Flax optimizers have been removed in v0.6.0 - this guide is targeted
towards :py:mod:`flax.optim` users to help them update their code to Optax.

See also Optax's quick start documentation:
Expand Down
12 changes: 7 additions & 5 deletions flax/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@

"""Flax API."""

from . import core as core
from . import linen as linen
from . import optim as optim
from . import core
from . import jax_utils
from . import linen
from . import serialization
from . import struct
from . import traverse_util

# DO NOT REMOVE - Marker for internal deprecated API.
# DO NOT REMOVE - Marker for internal logging.
from .version import __version__

# Allow `import flax`; `flax.optim.[...]`, etc
8 changes: 0 additions & 8 deletions flax/optim/README.md

This file was deleted.

63 changes: 0 additions & 63 deletions flax/optim/__init__.py

This file was deleted.

114 changes: 0 additions & 114 deletions flax/optim/adabelief.py

This file was deleted.

82 changes: 0 additions & 82 deletions flax/optim/adadelta.py

This file was deleted.

Loading

0 comments on commit 72cf73d

Please sign in to comment.