open3d.core.Device#

class open3d.core.Device#

Device context specifying device type and device id.

class DeviceType#

Members:

CPU

CUDA

CPU = <DeviceType.CPU: 0>#
CUDA = <DeviceType.CUDA: 1>#
property value#
__init__(*args, **kwargs)#

Overloaded function.

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

  2. __init__(self: open3d.cpu.pybind.core.Device, arg0: open3d::core::Device::DeviceType, arg1: int) -> None

  3. __init__(self: open3d.cpu.pybind.core.Device, arg0: str, arg1: int) -> None

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

get_id(self: open3d.cpu.pybind.core.Device) int#
get_type(self: open3d.cpu.pybind.core.Device) open3d::core::Device::DeviceType#
CPU = <DeviceType.CPU: 0>#
CUDA = <DeviceType.CUDA: 1>#