pub struct TensorId(/* private fields */);
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TensorId
impl<'de> Deserialize<'de> for TensorId
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<TensorId, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> Index<&TensorId> for TensorGrad<T>
impl<T> Index<&TensorId> for TensorGrad<T>
Source§impl<T> IndexMut<&TensorId> for TensorGrad<T>
impl<T> IndexMut<&TensorId> for TensorGrad<T>
Source§impl Ord for TensorId
impl Ord for TensorId
Source§impl PartialOrd for TensorId
impl PartialOrd for TensorId
Source§impl Serialize for TensorId
impl Serialize for TensorId
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Source§impl<T> Store<TensorId, TensorBase<T>> for TensorGrad<T>
impl<T> Store<TensorId, TensorBase<T>> for TensorGrad<T>
fn get(&self, key: &TensorId) -> Option<&TensorBase<T>>
fn get_mut(&mut self, key: &TensorId) -> Option<&mut TensorBase<T>>
fn insert( &mut self, key: TensorId, value: TensorBase<T>, ) -> Option<TensorBase<T>>
fn remove(&mut self, key: &TensorId) -> Option<TensorBase<T>>
impl Copy for TensorId
impl Eq for TensorId
impl StructuralPartialEq for TensorId
Auto Trait Implementations§
impl Freeze for TensorId
impl RefUnwindSafe for TensorId
impl Send for TensorId
impl Sync for TensorId
impl Unpin for TensorId
impl UnwindSafe for TensorId
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.