Struct mvnc::graph::Graph
[−]
[src]
pub struct Graph<'a> { /* fields omitted */ }
Methods
impl<'a> Graph<'a>
[src]
fn allocate<G>(device: &'a Device, graph: &[G]) -> Result<Self, Error>
[src]
Allocates a graph on an opened device
.
fn load_tensor<In>(&mut self, tensor: &[In]) -> Result<usize, Error>
[src]
Loads an input tensor
. The type In
is most likely ::half::f16
.
Returns the id of the calculation.
fn get_result<Out>(&mut self) -> Result<(usize, &[Out]), Error>
[src]
Gets the next result. The type Out
is most likely ::half::f16
.
Returns the id of the calculation and its output.
Noteworthy errors:
* Idle
: there are no pending calculations
* NoData
: pending calculation is not ready,
occurs only if Blocking::DontBlock
is set.
* ApiError
: size of result data is not a multiple of the size of Out
.
fn get_blocking(&self) -> Result<Blocking, Error>
[src]
Gets the setting for blocking behaviour.
fn set_blocking(&self, blocking: &Blocking) -> Result<(), Error>
[src]
Sets the setting for blocking behaviour.
fn get_time_taken(&self) -> Result<&[f32], Error>
[src]
Gets the times taken per stage.
fn get_debug_info(&self) -> Result<String, Error>
[src]
Gets debug info which will be present after some Error::MyriadError
.