pub fn probe_sr_asset(
path: &Path,
backend: &'static str,
) -> Result<SrSessionInfo, SrSessionError>Expand description
Probe an SR weight file for a tier.
- If the file is absent →
WeightAbsent. - Under
vision-onnxthe weight is also loaded into anortsession (LoadFailedon failure) andsession_readyis set totrue. - Under
not(vision-onnx)→FeatureDisabled(fail closed; the weight may be present on disk but the runtime cannot use it).