[feature request] Add new device type works on CPU #83817
Labels
enhancement
Not as big of a feature, but technically not a bug. Should be easy to fix
triaged
This issue has been looked at a team member, and triaged and prioritized into an appropriate module
馃殌 The feature, motivation and pitch
When we write code on a CPU machine and it runs on a GPU machine, we sometimes forget to transfer tensor GPU to CPU or opposite.
Because we write
device = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
on head of code.When we test it on a CPU machine, all tensors are put on the CPU and do not tell us whether the tensor will transfer as we expect or not.
So, how about adding a new device type that works on a CPU? (like a fake-gpu)
In my assumption,
Now(no GPU machine)
New Feature(no GPU machine)
Alternatives
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: