pub struct ConvertOptions {
pub extract_weights: bool,
pub output_path: String,
pub weights_path: Option<String>,
pub manifest_path: Option<String>,
pub free_dim_overrides: HashMap<String, u32>,
pub optimize: bool,
pub experimental_dynamic_inputs: bool,
}Expand description
Conversion options for ONNX to WebNN
Fields§
§extract_weights: boolExtract weights to external file (default: true)
output_path: StringOutput file path for graph (.webnn or .json)
weights_path: Option<String>Weights file path (.weights)
manifest_path: Option<String>Manifest file path (.manifest.json)
free_dim_overrides: HashMap<String, u32>Override dynamic dimension values (e.g., batch_size=1, sequence_length=128)
optimize: boolEnable constant folding and shape propagation optimizations
experimental_dynamic_inputs: boolExperimental: preserve unresolved dynamic input dimensions in v2 graph metadata
Trait Implementations§
Source§impl Clone for ConvertOptions
impl Clone for ConvertOptions
Source§fn clone(&self) -> ConvertOptions
fn clone(&self) -> ConvertOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConvertOptions
impl Debug for ConvertOptions
Auto Trait Implementations§
impl Freeze for ConvertOptions
impl RefUnwindSafe for ConvertOptions
impl Send for ConvertOptions
impl Sync for ConvertOptions
impl Unpin for ConvertOptions
impl UnsafeUnpin for ConvertOptions
impl UnwindSafe for ConvertOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more