is_torch_device function

Checks if object is a device

Checks if object is a device

is_torch_device(x)

Arguments

  • x: object to check
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14