pub enum TensorInputKey {
User {
id: u64,
},
Tangent {
of: Box<TensorInputKey>,
pass: DiffPassId,
},
}Variants§
Trait Implementations§
Source§impl ADKey for TensorInputKey
impl ADKey for TensorInputKey
Source§fn tangent_of(&self, pass: DiffPassId) -> Self
fn tangent_of(&self, pass: DiffPassId) -> Self
Create a tangent input key derived from this key.
pass is a unique identifier for the differentiate call.Source§impl Clone for TensorInputKey
impl Clone for TensorInputKey
Source§fn clone(&self) -> TensorInputKey
fn clone(&self) -> TensorInputKey
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TensorInputKey
impl Debug for TensorInputKey
Source§impl Hash for TensorInputKey
impl Hash for TensorInputKey
Source§impl PartialEq for TensorInputKey
impl PartialEq for TensorInputKey
impl Eq for TensorInputKey
impl StructuralPartialEq for TensorInputKey
Auto Trait Implementations§
impl Freeze for TensorInputKey
impl RefUnwindSafe for TensorInputKey
impl Send for TensorInputKey
impl Sync for TensorInputKey
impl Unpin for TensorInputKey
impl UnsafeUnpin for TensorInputKey
impl UnwindSafe for TensorInputKey
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
fn rand<T>(&self, rng: &mut (impl Rng + ?Sized)) -> Twhere
Self: Distribution<T>,
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