pipeless-ai 1.11.0

An open-source computer vision framework to build and deploy applications in minutes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
pub enum InferenceRuntime {
    Onnx,
    Openvino,
}
impl InferenceRuntime {
    pub fn from_str(runtime_str: &str) -> Option<Self> {
        if runtime_str == "onnx" {
            Some(InferenceRuntime::Onnx)
        } else if runtime_str == "openvino" {
            Some(InferenceRuntime::Openvino)
        } else {
            None
        }
    }
}