3 ms·Or better yet, define a device = 'cpu', and use tensor.to(device).by sva_ 4y agoOr better yet, define a device = 'cpu', and use tensor.to(device).