Skip to content

Commit

Permalink
Merge nnx.errors to flax.errors
Browse files Browse the repository at this point in the history
  • Loading branch information
IvyZX committed Sep 10, 2024
1 parent f948154 commit 1b03f4d
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 18 deletions.
9 changes: 9 additions & 0 deletions flax/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,15 @@ def __reduce__(self):
return (FlaxError, (str(self),))


#################################################
# NNX errors #
#################################################


class TraceContextError(FlaxError):
pass


#################################################
# lazy_init.py errors #
#################################################
Expand Down
17 changes: 0 additions & 17 deletions flax/nnx/errors.py

This file was deleted.

2 changes: 1 addition & 1 deletion flax/nnx/object.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@
import numpy as np

from flax.nnx import (
errors,
reprlib,
tracers,
)
from flax.nnx import graph
from flax.nnx.variables import Variable, VariableState
from flax.typing import Key
from flax import errors

G = tp.TypeVar('G', bound='Object')

Expand Down

0 comments on commit 1b03f4d

Please sign in to comment.