Struct ort::session::InMemorySession
source · pub struct InMemorySession<'s> { /* private fields */ }
Expand description
A Session
with data stored in-memory.
Methods from Deref<Target = Session>§
sourcepub fn run<'s, 'm>(
&'s self,
input_arrays: impl AsRef<[InputTensor]>
) -> OrtResult<Vec<DynOrtTensor<'m, IxDyn>>>where
's: 'm,
pub fn run<'s, 'm>( &'s self, input_arrays: impl AsRef<[InputTensor]> ) -> OrtResult<Vec<DynOrtTensor<'m, IxDyn>>>where 's: 'm,
Run the input data through the ONNX graph, performing inference.
Note that ONNX models can have multiple inputs; a Vec<_>
is thus
used for the input data here.