pub struct ParallelBatchExecutor { /* private fields */ }Expand description
Parallel batch executor using rayon for CPU parallelism
Implementations§
Source§impl ParallelBatchExecutor
impl ParallelBatchExecutor
Sourcepub fn with_memory_pool() -> Self
pub fn with_memory_pool() -> Self
Create parallel batch executor with memory pooling
Sourcepub fn execute_parallel(
&self,
graph: &EinsumGraph,
batch_inputs: Vec<Vec<Scirs2Tensor>>,
) -> Result<BatchResult<Scirs2Tensor>, ExecutorError>
pub fn execute_parallel( &self, graph: &EinsumGraph, batch_inputs: Vec<Vec<Scirs2Tensor>>, ) -> Result<BatchResult<Scirs2Tensor>, ExecutorError>
Execute batch in parallel using rayon
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelBatchExecutor
impl RefUnwindSafe for ParallelBatchExecutor
impl Send for ParallelBatchExecutor
impl Sync for ParallelBatchExecutor
impl Unpin for ParallelBatchExecutor
impl UnwindSafe for ParallelBatchExecutor
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more