#[repr(C)]pub struct RKRDlpackExportOptions {
pub dtype: RKRDLDataType,
pub device: RKRDLDevice,
}Expand description
Options for DLPack export: requested DLPack DLDataType + DLDevice.
Pass to *_dlpack_ex. NULL → kDLFloat / 64 / lanes 1 on CPU.
Dtype (CPU): any combination dlpk can host from converted CON data —
signed/unsigned ints (8/16/32/64), IEEE floats (32/64), and bool (8-bit
DLPack convention). Values are cast from on-disk binary64 (or u64 for atom
ids). Complex / bfloat / float8 / opaque / multi-lane types return
RKR_STATUS_VALIDATION_ERROR until implemented.
Device: only device_type = kDLCPU (1) is backed today; CUDA and other
DLDeviceType values are accepted in the struct but return
RKR_STATUS_FEATURE_DISABLED so callers can feature-detect without an ABI
break when device-resident exports land.
Fields§
§dtype: RKRDLDataTypeRequested element type (DLPack DLDataType layout).
device: RKRDLDeviceRequested placement (DLPack DLDevice layout).
Trait Implementations§
Source§impl Clone for RKRDlpackExportOptions
impl Clone for RKRDlpackExportOptions
Source§fn clone(&self) -> RKRDlpackExportOptions
fn clone(&self) -> RKRDlpackExportOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more