ACloudViewer  3.9.4
A Modern Library for 3D Data Processing
DLDevice Struct Reference

A Device for Tensor and operator. More...

#include <DLPack.h>

Collaboration diagram for DLDevice:

Public Attributes

DLDeviceType device_type
 The device type used in the device. More...
 
int32_t device_id
 The device index. For vanilla CPU memory, pinned memory, or managed memory, this is set to 0. More...
 

Detailed Description

A Device for Tensor and operator.

Definition at line 146 of file DLPack.h.

Member Data Documentation

◆ device_id

int32_t DLDevice::device_id

The device index. For vanilla CPU memory, pinned memory, or managed memory, this is set to 0.

Definition at line 154 of file DLPack.h.

◆ device_type

DLDeviceType DLDevice::device_type

The device type used in the device.

Definition at line 148 of file DLPack.h.


The documentation for this struct was generated from the following file: