pub fn get_layer_profile(
model_path: &Path,
config: &ModelConfig,
weights: Option<&HashMap<String, Tensor>>,
) -> Result<LayerProfile, Error>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 configurationweights- Optional loaded weights (required for Tier 3 computation)