pub enum SessionOutput {
Tensor(Tensor),
Sequence(SequenceValue),
}Expand description
A graph output produced by the runtime.
Variants§
Tensor(Tensor)
Sequence(SequenceValue)
Implementations§
Source§impl SessionOutput
impl SessionOutput
pub fn as_tensor(&self) -> Option<&Tensor>
pub fn as_sequence(&self) -> Option<&SequenceValue>
pub fn into_tensor(self) -> Option<Tensor>
pub fn into_sequence(self) -> Option<SequenceValue>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SessionOutput
impl !UnwindSafe for SessionOutput
impl Freeze for SessionOutput
impl Send for SessionOutput
impl Sync for SessionOutput
impl Unpin for SessionOutput
impl UnsafeUnpin for SessionOutput
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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