Skip to main content

extract_embedded_weights

Function extract_embedded_weights 

Source
pub fn extract_embedded_weights(module: &Module) -> Vec<EmbeddedWeight>
Expand description

Extract constant weight data from module globals with initializers.

Scans all global variables with init: Some(...) and evaluates Compose/Literal/ZeroValue expressions into flat f32 arrays.