pub struct HloPassMetadata {
pub pass_id: i64,
pub pass_name: String,
pub pipeline_name: String,
pub dump_filenames: Vec<String>,
pub module_changed: bool,
pub module_id: i64,
pub module_group_module_ids: Vec<i64>,
pub start_timestamp_usec: i64,
pub end_timestamp_usec: i64,
pub custom_metadata: Option<Any>,
}Expand description
Metadata for one run of an HLO pass on a module. Provides more information
when processing debug dumps of HloProtos about the order of HLO passes and
various other stats like duration. pass_id may also be used to identify a
particular run of a pass in debug info that propagates through stages of
compilation.
Fields§
§pass_id: i64For a given module, pass_id uniquely identifies a run of an HLO pass on that module. Note that a pass_id may not always refer to the same pass because the order of passes during compilation may change. For finding metadata for a particular pass, pass_name and pipeline_name would be more reliable, although note that they may not be unique.
pass_name: String§pipeline_name: String§dump_filenames: Vec<String>Filenames of the dumps of the module after this pass ran. Module may be dumped in multiple formats, and the order of formats in this field will stay consistent across passes.
module_changed: boolReturn value of pass.Run(). True if this pass changed the module, or, in the case where the module was run through this pass as part of a module group, true if this pass changed any module in the same module group.
module_id: i64The unique_id of the module that this pass is run on. May be different from the canonical_module_id of the HloModuleMetadata that this HloPassMetadata is inside.
module_group_module_ids: Vec<i64>If the module went through this pass as part of a module group, this is set as the ids of all the modules in the module group. Empty otherwise.
start_timestamp_usec: i64Timestamp before and after the pass is run. Note they may be equal.
end_timestamp_usec: i64§custom_metadata: Option<Any>Custom metadata for the pass.
Trait Implementations§
Source§impl Clone for HloPassMetadata
impl Clone for HloPassMetadata
Source§fn clone(&self) -> HloPassMetadata
fn clone(&self) -> HloPassMetadata
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for HloPassMetadata
impl Debug for HloPassMetadata
Source§impl Default for HloPassMetadata
impl Default for HloPassMetadata
Source§impl Message for HloPassMetadata
impl Message for HloPassMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for HloPassMetadata
impl PartialEq for HloPassMetadata
impl StructuralPartialEq for HloPassMetadata
Auto Trait Implementations§
impl Freeze for HloPassMetadata
impl RefUnwindSafe for HloPassMetadata
impl Send for HloPassMetadata
impl Sync for HloPassMetadata
impl Unpin for HloPassMetadata
impl UnwindSafe for HloPassMetadata
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)