|
rustnn C and C++ API
WebNN graph construction and execution
|
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. | |
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.
| enum RustnnBackend RustnnBackendDevice::backend |
| uintptr_t RustnnBackendDevice::device_index |
| enum RustnnDeviceType RustnnBackendDevice::device_type |