Skip to content

Fix transfer of data from GPU to CPU after computation#239

Open
marcovarrone wants to merge 1 commit intoMathOnco:mainfrom
marcovarrone:fix-208-gpu-compatibility
Open

Fix transfer of data from GPU to CPU after computation#239
marcovarrone wants to merge 1 commit intoMathOnco:mainfrom
marcovarrone:fix-208-gpu-compatibility

Conversation

@marcovarrone
Copy link

Closed issues

Changes

Add .cpu() calls before converting PyTorch tensors to NumPy arrays.

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.

updated last version : serWarning: can't convert cuda:0 device type tensor to numpy. Use Tensor.cpu() to copy the tensor to host memory first.

1 participant