mirror of
https://github.com/ROCm/jax.git
synced 2025-04-19 05:16:06 +00:00
tree_util: fix warning category and stacklevel
This commit is contained in:
parent
10720258ea
commit
6907dfad00
@ -527,7 +527,8 @@ def _deprecate(f):
|
||||
@functools.wraps(f)
|
||||
def wrapped(*args, **kwargs):
|
||||
warnings.warn(f"jax.{f.__name__} is deprecated, and will be removed in a future release. "
|
||||
f"Use jax.tree_util.{f.__name__} instead.")
|
||||
f"Use jax.tree_util.{f.__name__} instead.",
|
||||
category=FutureWarning, stacklevel=2)
|
||||
return f(*args, **kwargs)
|
||||
return wrapped
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user