pub fn read_network_from_buffer(
        &mut self,
        model_content: &[u8],
        weights_content: &[u8],
    ) -> Result<CNNNetwork> {
        let mut instance = std::ptr::null_mut();
        let weights_desc =
            TensorDesc::new(Layout::ANY, &[weights_content.len() as u64], Precision::U8);
        let weights_blob = Blob::new(weights_desc, weights_content)?;
        try_unsafe!(ie_core_read_network_from_memory(
            self.instance,
            model_content as *const _ as *const u8,
            model_content.len() as u64,
            weights_blob.instance,
            &mut instance as *mut *mut _,
        ))?;
        Ok(CNNNetwork { instance })
    }
/// Read a [CNNNetwork] from a pair of byte slices: `model_content` contains the XML data
/// describing the OpenVINO network IR and `weights_content` contains the binary weights.
Read a [CNNNetwork] from a pair of byte slices: `model_content` contains the XML data
describing the OpenVINO network IR and `weights_content` contains the binary weights.
Read a [ CNNNetwork ] from a pair of byte slices : ` model_content ` contains the XML data describing the OpenVINO network IR and ` weights_content ` contains the binary weights .
pub fn read_network_from_buffer(
        &mut self,
        model_content: &[u8],
        weights_content: &[u8],
    ) -> Result<CNNNetwork> {
        let mut instance = std::ptr::null_mut();
        let weights_desc =
            TensorDesc::new(Layout::ANY, &[weights_content.len() as u64], Precision::U8);
        let weights_blob = Blob::new(weights_desc, weights_content)?;
        try_unsafe!(ie_core_read_network_from_memory(
            self.instance,
            model_content as *const _ as *const u8,
            model_content.len() as u64,
            weights_blob.instance,
            &mut instance as *mut *mut _,
        ))?;
        Ok(CNNNetwork { instance })
    }
pub fn read_network_from_buffer ( & mut self , model_content : & [ u8 ] , weights_content : & [ u8 ] , ) -> Result < CNNNetwork > { let mut instance = std :: ptr :: null_mut ( ) ; let weights_desc = TensorDesc :: new ( Layout :: ANY , & [ weights_content . len ( ) as u64 ] , Precision :: U8 ) ; let weights_blob = Blob :: new ( weights_desc , weights_content ) ? ; try_unsafe ! ( ie_core_read_network_from_memory ( self instance model_content as const as const u8 model_content len ( ) as u64 weights_blob instance mut instance as mut mut ) ) ? ; Ok ( CNNNetwork { instance } ) }
Read a [CNNNetwork] from a pair of byte slices: `model_content` contains the XML data
describing the OpenVINO network IR and `weights_content` contains the binary weights.
Read a [ CNNNetwork ] from a pair of byte slices : ` model_content ` contains the XML data describing the OpenVINO network IR and ` weights_content ` contains the binary weights .
&mut self
model_content
&[u8]
weights_content
&[u8]
&mut self
model_content
&[u8]
weights_content
&[u8]