Skip to content

Conversation

@GiulioRomualdi
Copy link
Collaborator

@GiulioRomualdi GiulioRomualdi commented Feb 27, 2025

This pull request includes several changes to improve the handling of data types and default values in the adam package. The most important changes include updates to the initialization methods in two computation files and modifications to the TorchLike class to use the default tensor type.

Improvements to initialization methods:

Enhancements to TorchLike class:

  • src/adam/pytorch/torch_like.py: Modified the __post_init__ method to convert the array to the default tensor type instead of always converting to double precision.

📚 Documentation preview 📚: https://adam-docs--124.org.readthedocs.build/en/124/

@GiulioRomualdi GiulioRomualdi self-assigned this Feb 27, 2025
@GiulioRomualdi
Copy link
Collaborator Author

CI fixed!

@GiulioRomualdi
Copy link
Collaborator Author

I modified the code so there is no need to update the tests :)

@Giulero Giulero merged commit 4b97a8d into main Mar 4, 2025
18 checks passed
@Giulero Giulero deleted the fix_float64 branch March 4, 2025 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants