pub async fn from_path_with_config<P: AsRef<Path>>(
        path: P,
        config: &SessionConfig,
    ) -> Result<Session, SessionError> {
        let model = onnx::ModelProto::parse_from_bytes(&std::fs::read(path)?)?;
        Session::from_model_with_config(model, config).await
    }
// Read an ONNX model from a path and create a session using the specified [session config](SessionConfig).
Read an ONNX model from a path and create a session using the specified [session config](SessionConfig).
Read an ONNX model from a path and create a session using the specified [ session config ] ( SessionConfig ) .
pub async fn from_path_with_config<P: AsRef<Path>>(
        path: P,
        config: &SessionConfig,
    ) -> Result<Session, SessionError> {
        let model = onnx::ModelProto::parse_from_bytes(&std::fs::read(path)?)?;
        Session::from_model_with_config(model, config).await
    }
pub async fn from_path_with_config < P : AsRef < Path > > ( path : P , config : & SessionConfig , ) -> Result < Session , SessionError > { let model = onnx :: ModelProto :: parse_from_bytes ( & std :: fs :: read ( path ) ? ) ? ; Session :: from_model_with_config ( model , config ) . await }
Read an ONNX model from a path and create a session using the specified [session config](SessionConfig).
Read an ONNX model from a path and create a session using the specified [ session config ] ( SessionConfig ) .
path
P
config
&SessionConfig
path
P
config
&SessionConfig