pub struct ThreadedRecurrentNetworkExecutor { /* private fields */ }
Expand description
Implementations§
source§impl ThreadedRecurrentNetworkExecutor
impl ThreadedRecurrentNetworkExecutor
pub fn new( step_net_def: &NetDef, recurrent_input_map: &mut HashMap<String, String>, timestep_blob: String ) -> Self
pub fn ignore_link_dependencies(&mut self) -> bool
pub fn set_num_threads(&mut self, n: i32)
pub fn exec_range(&mut self, from: i32, to: i32)
sourcepub fn run_backwards(&mut self, t: i32) -> bool
pub fn run_backwards(&mut self, t: i32) -> bool
| Run backward pass with T timesteps. |
sourcepub fn run_op(&mut self, job: OpTask, thread_id: i32)
pub fn run_op(&mut self, job: OpTask, thread_id: i32)
| Runs a single op and updates its dependencies | when finished. | | If dependent ops are ready to run, adds | them to the task_queue. |
sourcepub fn worker_function(&mut self)
pub fn worker_function(&mut self)
| Run-loop for executor threads: pop | tasks from task_queue and execute them | with RunOp(). |
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for ThreadedRecurrentNetworkExecutor
impl !Send for ThreadedRecurrentNetworkExecutor
impl !Sync for ThreadedRecurrentNetworkExecutor
impl Unpin for ThreadedRecurrentNetworkExecutor
impl !UnwindSafe for ThreadedRecurrentNetworkExecutor
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.