Struct menoh::ModelData [−][src]
pub struct ModelData { /* fields omitted */ }
Represent model data defined by ONNX file.
Methods
impl ModelData
[src]
impl ModelData
pub fn new<P>(onnx_path: P) -> Result<Self, Error> where
P: AsRef<Path>,
[src]
pub fn new<P>(onnx_path: P) -> Result<Self, Error> where
P: AsRef<Path>,
Create ModelData from given ONNX file.
pub fn optimize(&mut self, vpt: &VariableProfileTable) -> Result<(), Error>
[src]
pub fn optimize(&mut self, vpt: &VariableProfileTable) -> Result<(), Error>
Optimize model data