fn proto_model_for_path(&self, p: impl AsRef<Path>) -> TractResult<ProtoModel> {
        let mut r = std::fs::File::open(p.as_ref())
            .with_context(|| format!("Could not open {:?}", p.as_ref()))?;
        self.proto_model_for_read(&mut r)
    }
/// Read a proto model from a filename.
Read a proto model from a filename.
Read a proto model from a filename .
fn proto_model_for_path(&self, p: impl AsRef<Path>) -> TractResult<ProtoModel> {
        let mut r = std::fs::File::open(p.as_ref())
            .with_context(|| format!("Could not open {:?}", p.as_ref()))?;
        self.proto_model_for_read(&mut r)
    }
fn proto_model_for_path ( & self , p : impl AsRef < Path > ) -> TractResult < ProtoModel > { let mut r = std :: fs :: File :: open ( p . as_ref ( ) ) . with_context ( | | format ! ( " " p as_ref ( ) ) ) ? ; self . proto_model_for_read ( & mut r ) }
Read a proto model from a filename.
Read a proto model from a filename .
&self
p
impl AsRef<Path>
&self
p
impl AsRef<Path>