-
Notifications
You must be signed in to change notification settings - Fork 117
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
Direct tests for dispatch implementations in alternative backends #1021
Conversation
@@ -78,7 +78,7 @@ jobs: | |||
install-jax: [0] | |||
install-torch: [0] | |||
part: | |||
- "--doctest-modules --ignore=pytensor/misc/check_duplicate_key.py pytensor --ignore=pytensor/link" | |||
- "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just odd to have pytensor in the middle of the ignore files
77fffef
to
f3e8575
Compare
testpaths = "tests/" | ||
[tool.pytest.ini_options] | ||
addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py" | ||
testpaths = ["pytensor/", "tests/"] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
pytensor is in the testpath because of --doctest-modules, so we test the code examples in the docstrings by default
f3e8575
to
5449562
Compare
2cab125
to
b5a0ca1
Compare
b5a0ca1
to
464805a
Compare
Only run required rewrites in JAX tests Several tests ended up not testing the backend Op implementations due to constant folding of inputs.
464805a
to
1590dfa
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1021 +/- ##
==========================================
+ Coverage 81.81% 81.89% +0.07%
==========================================
Files 182 182
Lines 47778 47778
Branches 8597 8597
==========================================
+ Hits 39088 39126 +38
+ Misses 6523 6487 -36
+ Partials 2167 2165 -2
|
This PR does a bunch of minor cleanups on the testing suite:
📚 Documentation preview 📚: https://pytensor--1021.org.readthedocs.build/en/1021/