Checks if object is a device
is_torch_device(x)
x
object to check
Tensors and Neural Networks with 'GPU' Acceleration
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.