pub struct ActivationOperation {Show 17 fields
pub id: String,
pub span_id: String,
pub op_index: usize,
pub name: String,
pub output_tensor_id: Option<String>,
pub shape: Vec<usize>,
pub dtype: String,
pub device: String,
pub observed_host_duration_ns: u64,
pub device_timings: Vec<ActivationDeviceTiming>,
pub dense_output_bytes: Option<u64>,
pub logical_allocated_bytes: Option<u64>,
pub logical_storage_count: Option<usize>,
pub logical_storage_live_duration_ns: Option<u64>,
pub logical_byte_nanoseconds: Option<ByteNanoseconds>,
pub logical_retained_bytes_at_measured_end: Option<u64>,
pub classification_sources: Vec<ActivationClassificationSource>,
}Expand description
One observed activation-producing operation and its deliberately separate cost metrics.
Fields§
§id: StringStable graph identity within this trace: the dedicated operation span ID when available,
otherwise {span_id}/op/{op_index}.
span_id: String§op_index: usize§name: String§output_tensor_id: Option<String>§shape: Vec<usize>§dtype: String§device: String§observed_host_duration_ns: u64Direct OpEvent host duration. On asynchronous devices this is commonly launch time.
device_timings: Vec<ActivationDeviceTiming>Present only when this event is the sole operation in a dedicated SpanKind::Op span.
dense_output_bytes: Option<u64>Dense output footprint (shape × dtype), not backing storage or allocator usage.
logical_allocated_bytes: Option<u64>Unique logical activation storage directly attributable to this operation.
logical_storage_count: Option<usize>§logical_storage_live_duration_ns: Option<u64>Sum of measured-region-clipped live durations across attributed storages.
logical_byte_nanoseconds: Option<ByteNanoseconds>Sum of storage bytes × measured-region-clipped live duration.
logical_retained_bytes_at_measured_end: Option<u64>Attributed logical storage still live at the measured region’s end.
classification_sources: Vec<ActivationClassificationSource>Trait Implementations§
Source§impl Clone for ActivationOperation
impl Clone for ActivationOperation
Source§fn clone(&self) -> ActivationOperation
fn clone(&self) -> ActivationOperation
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 ActivationOperation
impl Debug for ActivationOperation
Source§impl<'de> Deserialize<'de> for ActivationOperation
impl<'de> Deserialize<'de> for ActivationOperation
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 ActivationOperation
Source§impl PartialEq for ActivationOperation
impl PartialEq for ActivationOperation
Source§impl Serialize for ActivationOperation
impl Serialize for ActivationOperation
impl StructuralPartialEq for ActivationOperation
Auto Trait Implementations§
impl Freeze for ActivationOperation
impl RefUnwindSafe for ActivationOperation
impl Send for ActivationOperation
impl Sync for ActivationOperation
impl Unpin for ActivationOperation
impl UnsafeUnpin for ActivationOperation
impl UnwindSafe for ActivationOperation
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more