tflite 0.9.8

Rust bindings for TensorFlow Lite
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
impl BuiltinOptionsUnion {
    #[allow(non_snake_case, deprecated)]
    pub fn {{{name}}}() -> Self {
        let value = unsafe {
            cpp!([] -> *mut NativeTable as "flatbuffers::NativeTable*" {
                return new {{{name}}}T;
            })
        };

        Self {
            typ: BuiltinOptions::BuiltinOptions_{{{name}}},
            value,
        }
    }
}