Skip to main content

get_layer_profile

Function get_layer_profile 

Source
pub fn get_layer_profile(
    model_path: &Path,
    config: &ModelConfig,
    weights: Option<&HashMap<String, Tensor>>,
) -> Result<LayerProfile>
Expand description

Get or compute the layer profile for a model.

Tiered: embedded → cached → computed.

§Arguments

  • model_path - Path to model directory (for cache read/write)
  • config - Model configuration
  • weights - Optional loaded weights (required for Tier 3 computation)