rustnn C and C++ API
WebNN graph construction and execution
Loading...
Searching...
No Matches
RustnnBackendDevice Struct Reference

C representation of [BackendDevice]. More...

#include <rustnn.h>

Public Attributes

enum RustnnBackend backend
 Backend that owns the device.
 
enum RustnnDeviceType device_type
 Device class.
 
uintptr_t device_index
 Backend-specific device index.
 

Detailed Description

C representation of [BackendDevice].

device_index is the ONNX execution-provider device index or TensorRT CUDA device index. It must be zero for the other backends, whose Rust device variants do not carry an index.

Definition at line 277 of file rustnn.h.

Member Data Documentation

◆ backend

enum RustnnBackend RustnnBackendDevice::backend

Backend that owns the device.

Definition at line 281 of file rustnn.h.

◆ device_index

uintptr_t RustnnBackendDevice::device_index

Backend-specific device index.

Definition at line 289 of file rustnn.h.

◆ device_type

enum RustnnDeviceType RustnnBackendDevice::device_type

Device class.

Definition at line 285 of file rustnn.h.


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