Struct caffe2_operator::AsyncTask
source · pub struct AsyncTask { /* private fields */ }
Expand description
| AsyncTask represents an asynchronous | execution of a chain of ops. |
Implementations§
source§impl AsyncTask
impl AsyncTask
pub fn new(ops: &Vec<*mut OperatorStorage>) -> Self
pub fn handle_chain_error( &mut self, op: *mut OperatorStorage, err_str: *const u8, save_exception: Option<bool> )
pub fn run(&mut self, options: &ExecutionOptions) -> bool
pub fn reset(&mut self)
pub fn get_device_option(&self) -> DeviceOption
pub fn get_future_mut<'a>(&'a mut self) -> &'a mut AsyncTaskFuture
pub fn get_future<'a>(&'a self) -> &'a AsyncTaskFuture
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncTask
impl !Send for AsyncTask
impl !Sync for AsyncTask
impl Unpin for AsyncTask
impl !UnwindSafe for AsyncTask
Blanket Implementations§
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.