Fixed issue where 'exog' was not moved to GPU memory when using cuda #1
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.
I ran into an issue using this library on ubuntu with a CUDA enabled GPU with the error:
Expected all tensors to be on the same device, but found at least two devices, cpu and cuda:0! (when checking argument for argument mat2 in method wrapper_CUDA_mm)
I traced the issue back to lines 309 and 313 of _utils.py where exog was not sent to DEVICE, unlike offsets and latent_mean. I added device=DEVICE to both instances where exog could be created.
I then found several instances where self.latent_variables was not moved back to CPU memory for use in visualization features, and fixed these so all the code in the provided Getting Started notebook would run without producing the above error.