|
rustnn C and C++ API
WebNN graph construction and execution
|
C representation of [MLContextOptions]. More...
#include <rustnn.h>
Public Attributes | |
| enum RustnnPowerPreference | power_preference |
| WebNN power preference hint. | |
| bool | accelerated |
| Whether to prefer an accelerated device. | |
| enum RustnnBackend | backend_hint |
| Automatic corresponds to no Rust backend hint. | |
| bool | has_device_hint |
| Whether device_hint should override automatic device selection. | |
| struct RustnnBackendDevice | device_hint |
| Exact device to use when has_device_hint is true. | |
| bool | has_rustnn_options |
| Whether rustnn_options should replace the Rust defaults. | |
| struct RustnnOptions | rustnn_options |
| Backend settings used when has_rustnn_options is true. | |
C representation of [MLContextOptions].
| bool RustnnContextOptions::accelerated |
| enum RustnnBackend RustnnContextOptions::backend_hint |
| struct RustnnBackendDevice RustnnContextOptions::device_hint |
Exact device to use when has_device_hint is true.
| bool RustnnContextOptions::has_device_hint |
Whether device_hint should override automatic device selection.
| bool RustnnContextOptions::has_rustnn_options |
Whether rustnn_options should replace the Rust defaults.
| enum RustnnPowerPreference RustnnContextOptions::power_preference |
| struct RustnnOptions RustnnContextOptions::rustnn_options |
Backend settings used when has_rustnn_options is true.