pub struct TensorObservation {
pub event_id: String,
pub static_id: Option<String>,
pub source: Option<String>,
pub step: Option<u64>,
pub shape: Vec<usize>,
pub dtype: String,
pub device: String,
pub contiguous: bool,
pub requires_grad: bool,
pub storage_id: Option<String>,
}Expand description
One tensor snapshot emitted by the probe.
Fields§
§event_id: StringStable event identity within a trace; used for duplicate detection.
static_id: Option<String>Optional stable static identity shared across related observations.
source: Option<String>Optional source location or label from the probe.
step: Option<u64>Optional training step index when the trace is a time series.
shape: Vec<usize>§dtype: String§device: String§contiguous: boolWhether storage is contiguous (layout fact).
requires_grad: bool§storage_id: Option<String>Optional opaque storage identity from the runtime.
Trait Implementations§
Source§impl Clone for TensorObservation
impl Clone for TensorObservation
Source§fn clone(&self) -> TensorObservation
fn clone(&self) -> TensorObservation
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 TensorObservation
impl Debug for TensorObservation
Source§impl<'de> Deserialize<'de> for TensorObservation
impl<'de> Deserialize<'de> for TensorObservation
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
impl Eq for TensorObservation
Source§impl PartialEq for TensorObservation
impl PartialEq for TensorObservation
Source§impl Serialize for TensorObservation
impl Serialize for TensorObservation
impl StructuralPartialEq for TensorObservation
Auto Trait Implementations§
impl Freeze for TensorObservation
impl RefUnwindSafe for TensorObservation
impl Send for TensorObservation
impl Sync for TensorObservation
impl Unpin for TensorObservation
impl UnsafeUnpin for TensorObservation
impl UnwindSafe for TensorObservation
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