pub fn resolve_target(
candidates: &[ResolveCandidate<'_>],
model_type: &str,
hidden_size: usize,
model_refs: &[&str],
) -> Result<Option<usize>, TargetResolveError>Expand description
Resolve which candidate serves (model_type, hidden_size) for a
checkpoint identified by model_refs. Returns the index of the winning
candidate, Ok(None) when nothing declares the pair at all, and
TargetResolveError::Ambiguous when a collision cannot be broken to
exactly one target name.