pub struct AldDataset {
pub version: u32,
pub tensors: Vec<Tensor>,
}Expand description
Alimentar dataset (.ald file).
Fields§
§version: u32Format version
tensors: Vec<Tensor>Tensors in the dataset
Implementations§
Source§impl AldDataset
impl AldDataset
Sourcepub fn add_tensor(&mut self, tensor: Tensor)
pub fn add_tensor(&mut self, tensor: Tensor)
Add a tensor to the dataset.
Sourcepub fn load(data: &[u8]) -> Result<Self, FormatError>
pub fn load(data: &[u8]) -> Result<Self, FormatError>
Trait Implementations§
Source§impl Clone for AldDataset
impl Clone for AldDataset
Source§fn clone(&self) -> AldDataset
fn clone(&self) -> AldDataset
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 AldDataset
impl Debug for AldDataset
Auto Trait Implementations§
impl Freeze for AldDataset
impl RefUnwindSafe for AldDataset
impl Send for AldDataset
impl Sync for AldDataset
impl Unpin for AldDataset
impl UnsafeUnpin for AldDataset
impl UnwindSafe for AldDataset
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