Struct burn_tensor::DataSerialize
source · [−]Fields
value: Vec<P>
shape: Vec<usize>
Implementations
sourceimpl<P: Element> DataSerialize<P>
impl<P: Element> DataSerialize<P>
pub fn convert<E: Element>(self) -> DataSerialize<E>
Trait Implementations
sourceimpl<P: Debug> Debug for DataSerialize<P>
impl<P: Debug> Debug for DataSerialize<P>
sourceimpl<'de, P> Deserialize<'de> for DataSerialize<P>where
P: Deserialize<'de>,
impl<'de, P> Deserialize<'de> for DataSerialize<P>where
P: Deserialize<'de>,
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl<P: Clone, const D: usize> From<&DataSerialize<P>> for Data<P, D>
impl<P: Clone, const D: usize> From<&DataSerialize<P>> for Data<P, D>
sourcefn from(data: &DataSerialize<P>) -> Self
fn from(data: &DataSerialize<P>) -> Self
Converts to this type from the input type.
sourceimpl<P, const D: usize> From<DataSerialize<P>> for Data<P, D>
impl<P, const D: usize> From<DataSerialize<P>> for Data<P, D>
sourcefn from(data: DataSerialize<P>) -> Self
fn from(data: DataSerialize<P>) -> Self
Converts to this type from the input type.
sourceimpl<P: PartialEq> PartialEq<DataSerialize<P>> for DataSerialize<P>
impl<P: PartialEq> PartialEq<DataSerialize<P>> for DataSerialize<P>
sourcefn eq(&self, other: &DataSerialize<P>) -> bool
fn eq(&self, other: &DataSerialize<P>) -> bool
sourceimpl<P> Serialize for DataSerialize<P>where
P: Serialize,
impl<P> Serialize for DataSerialize<P>where
P: Serialize,
impl<P: Eq> Eq for DataSerialize<P>
impl<P> StructuralEq for DataSerialize<P>
impl<P> StructuralPartialEq for DataSerialize<P>
Auto Trait Implementations
impl<P> RefUnwindSafe for DataSerialize<P>where
P: RefUnwindSafe,
impl<P> Send for DataSerialize<P>where
P: Send,
impl<P> Sync for DataSerialize<P>where
P: Sync,
impl<P> Unpin for DataSerialize<P>where
P: Unpin,
impl<P> UnwindSafe for DataSerialize<P>where
P: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more