INNER CODE UNIT · Rust

TfLiteTensorData

SitinCloud/Owlyshield · owlyshield_predict/moonfire-tflite/src/lib.rs:93

    fn TfLiteTensorData(tensor: *const Tensor) -> *mut u8;
    fn TfLiteTensorName(tensor: *const Tensor) -> *const c_char;
    fn TfLiteInterpreterResizeInputTensor(
        interpreter: *const TfLiteInterpreter,
        input_index: usize,
        input_data: *const c_void,
        input_data_size: usize,
    ) -> TfLiteStatus;

    // fn TfLiteTypeGetName(type_: Type) -> *const c_char;
}

impl TfLiteStatus {
    fn to_result(self) -> Result<(), ()> {
        match self.0 {
            0 => Ok(()),
            _ => Err(()),
        }

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…