fn model_for_path(&self, p: impl AsRef<Path>) -> TractResult<InferenceModel> {
        let mut r = std::fs::File::open(p.as_ref())
            .map_err(|e| format!("Could not open {:?}: {}", p.as_ref(), e))?;
        self.model_for_read(&mut r)
    }
/// Build a model from a filename.
Build a model from a filename.
Build a model from a filename .
fn model_for_path(&self, p: impl AsRef<Path>) -> TractResult<InferenceModel> {
        let mut r = std::fs::File::open(p.as_ref())
            .map_err(|e| format!("Could not open {:?}: {}", p.as_ref(), e))?;
        self.model_for_read(&mut r)
    }
fn model_for_path ( & self , p : impl AsRef < Path > ) -> TractResult < InferenceModel > { let mut r = std :: fs :: File :: open ( p . as_ref ( ) ) . map_err ( | e | format ! ( " " p as_ref ( ) e ) ) ? ; self . model_for_read ( & mut r ) }
Build a model from a filename.
Build a model from a filename .
&self
p
impl AsRef<Path>
&self
p
impl AsRef<Path>