If your fatoms
list contains CPU tensor
s, then your example is the way to go.
You could push the content onto the GPU before calling torch.stack
, which is what my example shows.
If your fatoms
list contains CPU tensor
s, then your example is the way to go.
You could push the content onto the GPU before calling torch.stack
, which is what my example shows.