Open3D (C++ API)  0.19.0
Data Fields
DLPackVersion Struct Reference

The DLPack version. More...

#include <DLPack.h>

Data Fields

uint32_t major
 DLPack major version. More...
 
uint32_t minor
 DLPack minor version. More...
 

Detailed Description

The DLPack version.

A change in major version indicates that we have changed the data layout of the ABI - DLManagedTensorVersioned.

A change in minor version indicates that we have added new code, such as a new device type, but the ABI is kept the same.

If an obtained DLPack tensor has a major version that disagrees with the version number specified in this header file (i.e. major != DLPACK_MAJOR_VERSION), the consumer must call the deleter (and it is safe to do so). It is not safe to access any other fields as the memory layout will have changed.

In the case of a minor version mismatch, the tensor can be safely used as long as the consumer knows how to interpret all fields. Minor version updates indicate the addition of enumeration values.

Field Documentation

◆ major

uint32_t DLPackVersion::major

DLPack major version.

◆ minor

uint32_t DLPackVersion::minor

DLPack minor version.


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