This reference describes unreleased code on main; no release documents it yet.

rlmesh_tensor_dlpack_device

functionExperimental#include <rlmesh.h>[source]

On success *out owns the descriptor, its layout and storage, even after tensor is freed. The caller releases it once through (*out)->deleter(*out). On error *out is NULL. Never free a DLPack descriptor with rlmesh_tensor_free.

RLMeshStatus rlmesh_tensor_dlpack_device(
    const RLMeshTensor* tensor,
    int32_t* out_type,
    int32_t* out_id
)