You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using GPU support via from causalnex.structure.pytorch.notears import from_pandas, an error occurs due to some nn.Module components not residing on CUDA devices. The problematic code is:
RuntimeError: Expected all tensors to be on the same device, but found at least two devices, cuda:0 and cpu! (when checking argument forargument weightin method wrapper_CUDA__native_layer_norm)
Code of Conduct
I agree to follow this project's Code of Conduct
The text was updated successfully, but these errors were encountered:
Contact Details
[email protected]
Short description of the problem here.
When using GPU support via
from causalnex.structure.pytorch.notears import from_pandas
, an error occurs due to somenn.Module
components not residing on CUDA devices. The problematic code is:Link to the code.
To reproduce the error, set
hidden_layer_units
to[5]
.A potential fix might be to append
.to(self.device)
afterLayerNorm
, like this:CausalNex Version
0.12.1
Python Version
3.10.12
Relevant code snippet
Relevant log output
Code of Conduct
The text was updated successfully, but these errors were encountered: