Skip to content

Commit

Permalink
change ad_util const name (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicktianboli authored Feb 20, 2024
1 parent 1f1bd9c commit 6284f32
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion autofd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ def scale_by_learning_rate(
"operators",
]

__version__ = "0.0.6" # noqa
__version__ = "0.0.7" # noqa
4 changes: 2 additions & 2 deletions autofd/operators/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -1196,8 +1196,8 @@ def add_values(*args):
return fs[0]


ad_util.jaxval_adders[types.FunctionType] = add
ad_util.jaxval_adders[function] = add
ad_util.raw_jaxval_adders[types.FunctionType] = add
ad_util.raw_jaxval_adders[function] = add

array_operators = {
"neg": lambda x: numpy.negative(x), # noqa
Expand Down
4 changes: 2 additions & 2 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ ignore = E731

[metadata]
name = autofd
version = 0.0.6
version = 0.0.7
author = "Min Lin"
author_email = "[email protected]"
description = "Automatic Functional Derivative in JAX"
Expand All @@ -38,7 +38,7 @@ classifiers =
packages = find:
python_requires = >=3.9
install_requires =
jax>=0.4.16
jax>=0.4.24
jaxtyping>=0.2.21

[options.packages.find]
Expand Down

0 comments on commit 6284f32

Please sign in to comment.