[][src]Struct tensorflow_proto::xla::heap_simulator_trace::Event

pub struct Event {
    pub kind: i32,
    pub buffer_id: i64,
    pub computation_name: String,
    pub instruction_name: String,
    pub share_with_canonical_id: i64,
}

The trace includes a list of events, where each event describes one action performed by the heap simulator.

Fields

kind: i32buffer_id: i64

The id of the LogicalBuffer that the event applies to.

computation_name: String

The HloInstruction that the simulation was processing that caused this event to occur, identified by its computation and instruction name. E.g. buffers defined by instruction A are allocated when processing A.

instruction_name: Stringshare_with_canonical_id: i64

The id of the canonical LogicalBuffer that the buffer shares with. Only set for SHARE_WITH events.

Implementations

impl Event[src]

pub fn kind(&self) -> Kind[src]

Returns the enum value of kind, or the default if the field is set to an invalid enum value.

pub fn set_kind(&mut self, value: Kind)[src]

Sets kind to the provided enum value.

Trait Implementations

impl Clone for Event[src]

impl Debug for Event[src]

impl Default for Event[src]

impl Message for Event[src]

impl PartialEq<Event> for Event[src]

impl StructuralPartialEq for Event[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.