Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bug: noise model not training on GPU (#360)
### Description Fixes a bug where the noise model was unintentionally moved to the CPU before training, and thus did not train on GPU. - **What**: When `_set_model_mode` was called, the model was moved to the CPU by default, which caused training to happen on the CPU instead of the GPU. ### Changes Made - **Modified**: Removed device handling from `_set_model_mode`, moved final move to CPU to the end of the `fit` function. --- **Please ensure your PR meets the following requirements:** - [ ] Code builds and passes tests locally, including doctests - [ ] New tests have been added (for bug fixes/features) - [ ] Pre-commit passes - [ ] PR to the documentation exists (for bug fixes / features) Co-authored-by: Joran Deschamps <[email protected]>
- Loading branch information