pub struct ExecutionBundle { /* private fields */ }Expand description
A detached execution result retaining one allocation group for all outputs.
Implementations§
Source§impl ExecutionBundle
impl ExecutionBundle
Sourcepub fn output(&self, index: usize) -> Result<OutputRef<'_>, OutputAccessError>
pub fn output(&self, index: usize) -> Result<OutputRef<'_>, OutputAccessError>
§Errors
Returns OutputAccessError::InvalidOutput for an invalid output
index or OutputAccessError::Group when the output descriptor group
reports an access failure.
Sourcepub fn into_output(
self,
index: usize,
) -> Result<Tensor, (Self, OutputExtractError)>
pub fn into_output( self, index: usize, ) -> Result<Tensor, (Self, OutputExtractError)>
§Errors
Returns OutputExtractError::InvalidOutput for an invalid index or
OutputExtractError::Group for a structural group extraction
failure. Each error returns the unchanged bundle without copying.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ExecutionBundle
impl !RefUnwindSafe for ExecutionBundle
impl !UnwindSafe for ExecutionBundle
impl Send for ExecutionBundle
impl Sync for ExecutionBundle
impl Unpin for ExecutionBundle
impl UnsafeUnpin for ExecutionBundle
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