pub struct BatchScheduler { /* private fields */ }Expand description
Batch execution scheduler for efficient workload distribution.
Implementations§
Source§impl BatchScheduler
impl BatchScheduler
Sourcepub fn submit_batch(
&self,
operations: Vec<(&ArrayD<f32>, &ArrayD<f32>)>,
) -> Result<Vec<ArrayD<f32>>>
pub fn submit_batch( &self, operations: Vec<(&ArrayD<f32>, &ArrayD<f32>)>, ) -> Result<Vec<ArrayD<f32>>>
Submit a batch of operations.
Sourcepub fn get_context(&self) -> &ExecutionContext
pub fn get_context(&self) -> &ExecutionContext
Get the execution context.
Sourcepub fn get_batch_size(&self) -> usize
pub fn get_batch_size(&self) -> usize
Get batch size.
Auto Trait Implementations§
impl Freeze for BatchScheduler
impl !RefUnwindSafe for BatchScheduler
impl Send for BatchScheduler
impl Sync for BatchScheduler
impl Unpin for BatchScheduler
impl !UnwindSafe for BatchScheduler
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more