Skip to content

Commit

Permalink
Avoid one layer of indirection by colocating the source and the subpa…
Browse files Browse the repository at this point in the history
…ckage __init__ for optax.contrib.

PiperOrigin-RevId: 570045729
  • Loading branch information
mtthss authored and OptaxDev committed Oct 3, 2023
1 parent e43f9f5 commit 48b5810
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions optax/contrib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@
# ==============================================================================
"""Contributed optimizers in Optax."""

from optax._src.contrib.mechanic import MechanicState
from optax._src.contrib.mechanic import mechanize
from optax.contrib.mechanic import MechanicState
from optax.contrib.mechanic import mechanize
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
from optax._src import numerics
from optax._src import state_utils
from optax._src import update
from optax._src.contrib import mechanic
from optax.contrib import mechanic


# TODO(harshm): make LARS and Fromage work with mechanic.
Expand Down

0 comments on commit 48b5810

Please sign in to comment.