menoh 0.2.2

Binding for Menoh.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use super::ModelData;

#[test]
#[should_panic(expected = "InvalidFilename")]
fn from_onnx_invalid_path() {
    ModelData::from_onnx("invalid.onnx").unwrap();
}

#[test]
#[should_panic(expected = "OnnxParseError")]
fn from_onnx_bytes_invalid_data() {
    ModelData::from_onnx_bytes(b"0123456789").unwrap();
}