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

Use gpu for noise generation if available #253

Merged
merged 3 commits into from
Mar 8, 2024
Merged

Conversation

lkeegan
Copy link
Contributor

@lkeegan lkeegan commented Oct 2, 2023

  • assert_array_well_defined now accepts array or tensor
    • if the tensor is already on the gpu the assertions will also be done on the gpu
  • increase number of noise samples in tests to make the statistical tests more robust
  • convert final arrays back to float64 to maintain existing data format
    • these conversions can be removed when the simpy array datatype is changed to float32

Please check the following before creating the pull request (PR):

  • Did you run automatic tests?
  • Did you run manual tests?
  • Is the code provided in the PR still backwards compatible to previous SIMPA versions?

List any specific code review questions

List any special testing requirements

Additional context (e.g. papers, documentation, blog posts, ...)

Provide issue / feature request fixed by this PR

Fixes #

- `assert_array_well_defined` now accepts array or tensor
  - if the tensor is already on the gpu the assertions will also be done on the gpu
- increase number of noise samples in tests to make the statistical tests more robust
- convert final arrays back to float64 to maintain existing data format
  - these conversions can be removed when the simpy array datatype is changed to float32
@kdreher kdreher merged commit b8c62a5 into IMSY-DKFZ:main Mar 8, 2024
12 checks passed
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.

2 participants