Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change ad_util const name #9

Merged
merged 1 commit into from
Feb 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading