Struct tfdeploy::ModelState
[−]
[src]
pub struct ModelState<'a> { pub outputs: Vec<Option<Vec<Input>>>, // some fields omitted }
Fields
outputs: Vec<Option<Vec<Input>>>
Methods
impl<'a> ModelState<'a>
[src]
pub fn reset(&mut self) -> Result<()>
[src]
Reset internal state.
pub fn set_outputs(&mut self, id: usize, values: Vec<Matrix>) -> Result<()>
[src]
pub fn set_value(&mut self, id: usize, value: Matrix) -> Result<()>
[src]
pub fn compute_one(&mut self, node: usize) -> Result<()>
[src]
pub fn take_by_name(&mut self, name: &str) -> Result<Vec<Matrix>>
[src]
pub fn take(&mut self, id: usize) -> Result<Vec<Matrix>>
[src]
pub fn run(
&mut self,
inputs: Vec<(usize, Matrix)>,
output: usize
) -> Result<Vec<Matrix>>
[src]
&mut self,
inputs: Vec<(usize, Matrix)>,
output: usize
) -> Result<Vec<Matrix>>
Main entrypoint for running a network.
Clears the internal state.