pub struct HloModuleMetadataProto {
pub canonical_module_id: i64,
pub module_group_name: String,
pub original_module_id: i64,
pub partitioned_module_ids: Vec<i64>,
pub pass_metadata: Vec<HloPassMetadata>,
}Expand description
Metadata for an HLO module. Dumped after HLO passes and before LLO lowering with filename module_####.metadata.textproto, where #### is canonical_module_id.
Fields§
§canonical_module_id: i64Uniquely identifies an HloModuleMetadata. Equal to the first unique_id of the module (a module may go through multiple unique_ids). If a module is partitioned into multiple modules, those modules will each have a new HloModuleMetadata with a different canonical_module_id.
module_group_name: StringName of the module group that the module is part of.
original_module_id: i64The canonical module id of the module that this one is partitioned from, if applicable.
partitioned_module_ids: Vec<i64>The canonical module ids of the modules that this one is partitioned into, if applicable.
pass_metadata: Vec<HloPassMetadata>Metadata for the HLO passes that are run on the module.
Trait Implementations§
Source§impl Clone for HloModuleMetadataProto
impl Clone for HloModuleMetadataProto
Source§fn clone(&self) -> HloModuleMetadataProto
fn clone(&self) -> HloModuleMetadataProto
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HloModuleMetadataProto
impl Debug for HloModuleMetadataProto
Source§impl Default for HloModuleMetadataProto
impl Default for HloModuleMetadataProto
Source§impl Message for HloModuleMetadataProto
impl Message for HloModuleMetadataProto
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for HloModuleMetadataProto
impl PartialEq for HloModuleMetadataProto
impl StructuralPartialEq for HloModuleMetadataProto
Auto Trait Implementations§
impl Freeze for HloModuleMetadataProto
impl RefUnwindSafe for HloModuleMetadataProto
impl Send for HloModuleMetadataProto
impl Sync for HloModuleMetadataProto
impl Unpin for HloModuleMetadataProto
impl UnwindSafe for HloModuleMetadataProto
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
Mutably borrows from an owned value. Read more
§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)
🔬This is a nightly-only experimental API. (
clone_to_uninit)