|
rustnn C and C++ API
WebNN graph construction and execution
|
Backend selection and runtime configuration for MLContext. More...
#include <rustnn.hpp>
Public Attributes | |
| MLPowerPreference | power_preference = MLPowerPreference::Default |
| bool | accelerated = true |
| Backend | backend_hint = Backend::Automatic |
| std::optional< BackendDevice > | device_hint |
| std::optional< RustNNOptions > | rustnn_options |
Backend selection and runtime configuration for MLContext.
Definition at line 99 of file rustnn.hpp.
| bool rustnn::MLContextOptions::accelerated = true |
Definition at line 101 of file rustnn.hpp.
| Backend rustnn::MLContextOptions::backend_hint = Backend::Automatic |
Definition at line 102 of file rustnn.hpp.
| std::optional<BackendDevice> rustnn::MLContextOptions::device_hint |
Definition at line 103 of file rustnn.hpp.
| MLPowerPreference rustnn::MLContextOptions::power_preference = MLPowerPreference::Default |
Definition at line 100 of file rustnn.hpp.
| std::optional<RustNNOptions> rustnn::MLContextOptions::rustnn_options |
Definition at line 104 of file rustnn.hpp.