pub struct ExecutionResult {
pub output: Scirs2Tensor,
pub execution_time_ms: f64,
pub intermediates: HashMap<usize, Scirs2Tensor>,
pub backend: Backend,
pub memory_bytes: usize,
}Expand description
Execution result with tensor data and metadata
Fields§
§output: Scirs2TensorOutput tensor
execution_time_ms: f64Execution time in milliseconds
intermediates: HashMap<usize, Scirs2Tensor>Intermediate tensors (if requested)
backend: BackendBackend used
memory_bytes: usizeMemory used in bytes
Implementations§
Source§impl ExecutionResult
impl ExecutionResult
Sourcepub fn print_summary(&self, config: &ExecutionConfig)
pub fn print_summary(&self, config: &ExecutionConfig)
Print execution summary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExecutionResult
impl RefUnwindSafe for ExecutionResult
impl Send for ExecutionResult
impl Sync for ExecutionResult
impl Unpin for ExecutionResult
impl UnwindSafe for ExecutionResult
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