You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let input_names:Vec<String> = self.inputs.iter().map(|input| input.name.clone()).collect();
let input_names_cstring:Vec<CString> = input_names
.iter()
.cloned()
.map(|n| CString::new(n).unwrap())
.collect();
let input_names_ptr:Vec<*consti8> = input_names_cstring
.into_iter()
.map(|n| n.into_raw()as*consti8)
.collect();
let output_names:Vec<String> = self
.outputs
.iter()
.map(|output| output.name.clone())
.collect();
let output_names_cstring:Vec<CString> = output_names
.into_iter()
.map(|n| CString::new(n).unwrap())
.collect();
let output_names_ptr:Vec<*consti8> = output_names_cstring
.iter()
.map(|n| n.as_ptr()as*consti8)
.collect();
The text was updated successfully, but these errors were encountered:
aldanor
changed the title
Is it possible to pre-cache all the required arguments (names, shapes, etc)?
Should input/output names be precached?
Nov 28, 2020
Why do this every time
run()
is called, would it be possible to do it upon load?onnxruntime-rs/onnxruntime/src/session.rs
Lines 383 to 406 in 32e9935
The text was updated successfully, but these errors were encountered: