read_net_from_onnx_buffer

Function read_net_from_onnx_buffer 

Source
pub fn read_net_from_onnx_buffer(buffer: &Vector<u8>) -> Result<Net>
Expand description

Reads a network model from ONNX in-memory buffer.

§Parameters

  • buffer: in-memory buffer that stores the ONNX model bytes.

§Returns

Network object that ready to do forward, throw an exception in failure cases.