Skip to content

Queue expecting cuda tensors and more cuda strangeness #575

Answered by romainVala
Hierakonpolis asked this question in Q&A
Discussion options

You must be logged in to vote

Hello

  File "/home/cat/anaconda3/envs/adapt/lib/python3.9/site-packages/torchio/transforms/augmentation/spatial/random_elastic_deformation.py", line 187, in get_params

this error line does not match with the last torchio of the file, version

Could you please update torchio, and precise, with python pytorch version you are using

I suppose the update of torchio wont change, may be it come from the specific pytorch/python version you use ...

can you also test in you python environment,

coarse_field = torch.rand(2,2,20)
coarse_field.device

from what I understand in you first error it seems you get a cuda variable ...
I get
device(type='cpu')

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Hierakonpolis
Comment options

Answer selected by Hierakonpolis
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants