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

Patch the GPU problem and add new test #2

Merged
merged 1 commit into from
Oct 25, 2023
Merged

Conversation

Unco3892
Copy link
Owner

  • The unit tests do not account for tests on GPUs, and the error is reproduced in the following colab notebook. One solution is that for making the inference, it should explicitly be moved over to the CPU (i.e., self.y_val.detach().cpu().numpy()​) and also give the users which device they would like BaseTrainer class to be trained on. In addition to this, the following commits where added:
  • Add patch to fix device issue with MultivariateNormal in svgpy_model
  • Adjust the plotting module for svgpr
  • Add tests for base_trainer

- The unit tests do not account for tests on GPUs, and the error is reproduced in the following [colab notebook](https://colab.research.google.com/drive/1W-l13I3Vg0EmOVZSMCJ5ikocYd27vdku?usp=sharing). One solution is that for making the inference, it should explicitly be moved over to the CPU (i.e., `self.y_val.detach().cpu().numpy()​`) and also give the users which device they would like `BaseTrainer` class to be trained on.
In addition to this, the following commits where added:
- Add patch to fix device issue with MultivariateNormal in svgpy_model
- Adjust the plotting module for svgpr
- Add tests for base_trainer
@Unco3892 Unco3892 merged commit d5402ea into main Oct 25, 2023
@Unco3892 Unco3892 deleted the fix-device-mismatch branch October 25, 2023 18:11
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.

1 participant