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

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
 

Detailed Description

Backend selection and runtime configuration for MLContext.

Definition at line 99 of file rustnn.hpp.

Member Data Documentation

◆ accelerated

bool rustnn::MLContextOptions::accelerated = true

Definition at line 101 of file rustnn.hpp.

◆ backend_hint

Backend rustnn::MLContextOptions::backend_hint = Backend::Automatic

Definition at line 102 of file rustnn.hpp.

◆ device_hint

std::optional<BackendDevice> rustnn::MLContextOptions::device_hint

Definition at line 103 of file rustnn.hpp.

◆ power_preference

MLPowerPreference rustnn::MLContextOptions::power_preference = MLPowerPreference::Default

Definition at line 100 of file rustnn.hpp.

◆ rustnn_options

std::optional<RustNNOptions> rustnn::MLContextOptions::rustnn_options

Definition at line 104 of file rustnn.hpp.


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