-
-
Notifications
You must be signed in to change notification settings - Fork 572
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
Temporarily pin autograd
< 1.6, fix builds
#3062
Temporarily pin autograd
< 1.6, fix builds
#3062
Conversation
We can probably just remove autograd as a dependency, we don't use it anywhere (only in one test specifically just for autograd) |
Good idea, since we can fall back to using |
Yes please. I don't think the fall back to derivative will work, that is specifically for interpolants. But we never need the fallback in practice |
The only place where we use it is here: PyBaMM/pybamm/expression_tree/functions.py Lines 94 to 122 in bf85811
Edit: great, opening a PR soon, but I would need some help though |
@tinosulzer I thought of some more discussion before I start doing it concretely. Using "derivative" instead of
should I remove those tests? Debugging this could be slightly outside my forte |
I see, let's keep this as is then, and just make autograd an optional dependency as is already being done in #3044 |
Sure, closing this since the build issue was resolved with autograd |
Description
Adds an upper-bound constraint to
autograd
's version, in order to fix builds for Windows and ARM M-series macOS, for more details see HIPS/autograd#601Update: fixed after a
1.6.1
patch releaseFixes # (issue)
Type of change
Please add a line in the relevant section of CHANGELOG.md to document the change (include PR #) - note reverse order of PR #s. If necessary, also add to the list of breaking changes.
Key checklist:
$ pre-commit run
(see CONTRIBUTING.md for how to set this up to run automatically when committing locally, in just two lines of code)$ python run-tests.py --all
$ python run-tests.py --doctest
You can run unit and doctests together at once, using
$ python run-tests.py --quick
.Further checks: