open3d.core.Device#

class open3d.core.Device#

Device context specifying device type and device id.

class DeviceType(value)#

An enumeration.

CPU = 0#
CUDA = 1#
SYCL = 2#
__init__(*args, **kwargs)#

Overloaded function.

  1. __init__(self: open3d.core.Device) -> None

  2. __init__(self: open3d.core.Device, arg0: open3d.core.Device.DeviceType, arg1: typing.SupportsInt) -> None

  3. __init__(self: open3d.core.Device, arg0: str, arg1: typing.SupportsInt) -> None

  4. __init__(self: open3d.core.Device, arg0: str) -> None

get_id(self: open3d.core.Device) int#
get_type(self: open3d.core.Device) open3d.core.Device.DeviceType#
CPU = 0#
CUDA = 1#
SYCL = 2#