pub async fn from_bytes_with_config(
        bytes: &[u8],
        config: &SessionConfig,
    ) -> Result<Session, SessionError> {
        let model = onnx::ModelProto::parse_from_bytes(bytes)?;
        Session::from_model_with_config(model, config).await
    }
/// Read an ONNX model from bytes and create a session with the specified [session config](SessionConfig).
Read an ONNX model from bytes and create a session with the specified [session config](SessionConfig).
Read an ONNX model from bytes and create a session with the specified [ session config ] ( SessionConfig ) .
pub async fn from_bytes_with_config(
        bytes: &[u8],
        config: &SessionConfig,
    ) -> Result<Session, SessionError> {
        let model = onnx::ModelProto::parse_from_bytes(bytes)?;
        Session::from_model_with_config(model, config).await
    }
pub async fn from_bytes_with_config ( bytes : & [ u8 ] , config : & SessionConfig , ) -> Result < Session , SessionError > { let model = onnx :: ModelProto :: parse_from_bytes ( bytes ) ? ; Session :: from_model_with_config ( model , config ) . await }
Read an ONNX model from bytes and create a session with the specified [session config](SessionConfig).
Read an ONNX model from bytes and create a session with the specified [ session config ] ( SessionConfig ) .
bytes
&[u8]
config
&SessionConfig
bytes
&[u8]
config
&SessionConfig