pub struct GoldenOutput {
pub name: String,
pub data: Vec<f32>,
pub shape: Vec<usize>,
}Expand description
Golden fixture: a single Python-reference output recorded for a given config + input combination.
Fields§
§name: StringOutput name (e.g. "atom_energy", "energy", "force").
data: Vec<f32>Row-major flat tensor.
shape: Vec<usize>Trait Implementations§
Source§impl Clone for GoldenOutput
impl Clone for GoldenOutput
Source§fn clone(&self) -> GoldenOutput
fn clone(&self) -> GoldenOutput
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 GoldenOutput
impl Debug for GoldenOutput
Source§impl<'de> Deserialize<'de> for GoldenOutput
impl<'de> Deserialize<'de> for GoldenOutput
Source§fn 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
Auto Trait Implementations§
impl Freeze for GoldenOutput
impl RefUnwindSafe for GoldenOutput
impl Send for GoldenOutput
impl Sync for GoldenOutput
impl Unpin for GoldenOutput
impl UnsafeUnpin for GoldenOutput
impl UnwindSafe for GoldenOutput
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