Skip to main content

TNVMResult

Struct TNVMResult 

Source
pub struct TNVMResult<'a, C: ComplexScalar> { /* private fields */ }

Implementations§

Source§

impl<'a, C: ComplexScalar> TNVMResult<'a, C>

Source

pub fn new( memory: &'a MemoryBuffer<C>, buffer: &'a SizedTensorBuffer<C>, ) -> Self

Source

pub fn get_fn_result2(&self) -> TNVMReturnType2<'a, C>

Source

pub fn get_grad_result2(&self) -> TNVMReturnType2<'a, C>

Source

pub fn get_fn_result(&self) -> TNVMReturnType<'a, C>

Source

pub fn get_grad_result(&self) -> TNVMReturnType<'a, C>

Source

pub fn get_hess_result(&self) -> TNVMReturnType<'a, C>

Auto Trait Implementations§

§

impl<'a, C> Freeze for TNVMResult<'a, C>
where &'a AVec<C>: Freeze, &'a SizedTensorBuffer<C>: Freeze,

§

impl<'a, C> RefUnwindSafe for TNVMResult<'a, C>
where &'a AVec<C>: RefUnwindSafe, &'a SizedTensorBuffer<C>: RefUnwindSafe,

§

impl<'a, C> Send for TNVMResult<'a, C>
where &'a AVec<C>: Send, &'a SizedTensorBuffer<C>: Send,

§

impl<'a, C> Sync for TNVMResult<'a, C>
where &'a AVec<C>: Sync, &'a SizedTensorBuffer<C>: Sync,

§

impl<'a, C> Unpin for TNVMResult<'a, C>
where &'a AVec<C>: Unpin, &'a SizedTensorBuffer<C>: Unpin,

§

impl<'a, C> UnsafeUnpin for TNVMResult<'a, C>
where &'a AVec<C>: UnsafeUnpin, &'a SizedTensorBuffer<C>: UnsafeUnpin,

§

impl<'a, C> UnwindSafe for TNVMResult<'a, C>
where &'a AVec<C>: UnwindSafe, &'a SizedTensorBuffer<C>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> ByRef<T> for T

Source§

fn by_ref(&self) -> &T

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> DistributionExt for T
where T: ?Sized,

Source§

fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> T
where Self: Distribution<T>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V