Add int
type to device
parameter of torch.set_default_device() on the doc
#126646
Labels
int
type to device
parameter of torch.set_default_device() on the doc
#126646
π The doc issue
The doc of
torch.set_default_device()
explainsdevice
parameter but it doesn't haveint
type as shown below:Actually,
device
parameter withint
type works as shown below:Suggest a potential alternative/fix
The doc should also say
int
type as shown below:The text was updated successfully, but these errors were encountered: