-
Notifications
You must be signed in to change notification settings - Fork 41
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
develop -> release for 0.4.1 #211
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
release -> main (for v0.4.0)
release -> develop (for v0.4.0)
Try allowing to skip coverage comment
The test execution shows warnings about traces being potentially incorrect because the Python3 control flow is not completely recorded. This includes conditions on the shape of the integration domain tensor. Since the only arguments of the compiled integration function are the integrand and integration domain, and the dimensionality of this integration domain is constant, we can ignore the warnings. After this change, the two `get_jit_compiled_integrate` functions hide PyTorch trace compilation warnings with `warnings.filterwarnings`.
Hide PyTorch trace compilation warnings
Update .readthedocs.yml
fixed a bug.
I fixed a bug for tutorial.rst.
Update tutorial.rst
Update tutorial.rst
The previous check if code is currently being compiled no longer works with new TensorFlow versions because the `Tensor` type is now called `SymbolicTensor`. This change adds a helper function to check if code is being compiled for JAX, TensorFlow or PyTorch. If tf.is_symbolic_tensor() is available, i.e. if the TensorFlow version is high enough, we use this function to check if code is being compiled. To avoid inconsistencies between backends, the check for integration domain values is disabled if code is being compiled with PyTorch even if the check works with PyTorch.
Fix JIT compilation with TensorFlow >= 2.14.0
Switch black version
Fixing mamba setup in CI
main -> develop (Release 0.4.1)
- update docs - mildly increased MC error bounds to allow for variance in jax
- Made domain setup consistent - Further CI fixes
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary of changes
This pull request includes several changes across various files to update dependencies, improve compatibility, and enhance functionality. The most important changes include updating Python versions for CI, modifying dependencies, and adding new utility functions for tensor operations.
Dependency and Environment Updates:
.github/workflows/autoblack.yml
: Updated Python version to 3.11 and specified Black version to 24.4.2..github/workflows/run_tests.yml
: Updated micromamba setup action and addedcontinue-on-error
for pytest coverage comment. [1] [2].readthedocs.yml
: Updated to useubuntu-22.04
andmambaforge-22.9
for building documentation.environment_all_backends.yml
: Updated Python version to 3.12 and modified dependencies for TensorFlow and JAX. [1] [2]Documentation Updates:
README.md
anddocs/source/install.rst
: Updated JAX installation instructions to version 0.4.17. [1] [2]docs/source/tutorial.rst
: Addedintegration_domain
parameter to thecalculate_result
method.Code Enhancements:
torchquad/integration/base_integrator.py
: Improved handling of multi-dimensional integrands.torchquad/integration/utils.py
: Added_is_compiling
and_torch_trace_without_warnings
utility functions for better tensor operation handling. [1] [2]Minor Code Cleanups:
torchquad/integration/boole.py
,torchquad/integration/simpson.py
,torchquad/integration/utils.py
). [1] [2] [3]Release notes