Skip to main content

probe_sr_asset

Function probe_sr_asset 

Source
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-onnx the weight is also loaded into an ort session (LoadFailed on failure) and session_ready is set to true.
  • Under not(vision-onnx) → FeatureDisabled (fail closed; the weight may be present on disk but the runtime cannot use it).