Skip to content
Discussion options

You must be logged in to vote

Hi again,
so, I was able to solve this myself. I will document it here though in case others come across this problem.
The "recipe" above is correct, but certain transforms need extra care. Simple transforms like ScaleIntensityd are no problem, as they operate on the tensor in-place, but more complex transforms like Rand3DElasticd require a bit more attention.

I looked into the source code of the Rand3DElasticd transform (which is the main difference to the fast_training_tutorial.ipynb), and saw that the resampling grid by default does get initialized on CPU, even if the tensors are cached to GPU beforehand via EnsureTyped..., device=device).
Reading the API more carefully, I could have g…

Replies: 1 comment

Comment options

nvahmadi
Aug 26, 2022
Collaborator Author

You must be logged in to vote
0 replies
Answer selected by wyli
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant