Struct caffe2_operator::AsyncSchedulingNet
source · pub struct AsyncSchedulingNet { /* private fields */ }
Implementations§
source§impl AsyncSchedulingNet
impl AsyncSchedulingNet
pub fn new(net_def: &Arc<NetDef>, ws: *mut Workspace) -> Self
pub fn reset(&mut self)
pub fn wait(&mut self)
pub fn is_inline_task(&self, parent_id: i32, child_id: i32) -> bool
sourcepub fn schedule(&mut self, task_id: i32, run_inline: Option<bool>)
pub fn schedule(&mut self, task_id: i32, run_inline: Option<bool>)
| schedule() is not supposed to throw, all | exceptions in the ops are caught and | reported in the end of the graph’s | execution, the full graph of tasks is | expected to be scheduled
pub fn parent_callback(&mut self, parent_id: i32)
pub fn poll_and_schedule(&mut self, task_id: i32)
pub fn finish_run(&mut self)
pub fn run_async(&mut self) -> bool
pub fn cancel(&mut self)
pub fn cancel_and_finish_async_tasks(&mut self)
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for AsyncSchedulingNet
impl !Send for AsyncSchedulingNet
impl !Sync for AsyncSchedulingNet
impl Unpin for AsyncSchedulingNet
impl !UnwindSafe for AsyncSchedulingNet
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.