Struct pjrt_sys::protos::xla::HloModuleProto
source · pub struct HloModuleProto {Show 18 fields
pub name: String,
pub entry_computation_name: String,
pub entry_computation_id: i64,
pub computations: Vec<HloComputationProto>,
pub host_program_shape: Option<ProgramShapeProto>,
pub id: i64,
pub schedule: Option<HloScheduleProto>,
pub input_output_alias: Option<HloInputOutputAliasProto>,
pub buffer_donor: Option<HloBufferDonorProto>,
pub cross_program_prefetches: Vec<CrossProgramPrefetch>,
pub is_dynamic: bool,
pub spmd_output_sharding: Option<OpSharding>,
pub spmd_parameters_shardings: Vec<OpSharding>,
pub use_auto_spmd_partitioning: bool,
pub profile_info: Vec<ProfileInfo>,
pub device_assignment: Option<DeviceAssignmentProto>,
pub stack_frame_index: Option<StackFrameIndexProto>,
pub frontend_attributes: Option<FrontendAttributes>,
}Expand description
Serialization of HloModule.
Fields§
§name: String§entry_computation_name: String§entry_computation_id: i64§computations: Vec<HloComputationProto>The array of computations is always in a valid dependency order, where callees appear before their callers.
host_program_shape: Option<ProgramShapeProto>The host program shape (with layout) of the entry computation.
id: i64The id of this module.
schedule: Option<HloScheduleProto>The schedule for this module.
input_output_alias: Option<HloInputOutputAliasProto>Describes alias information between inputs and outputs.
buffer_donor: Option<HloBufferDonorProto>Describes the information of input buffer donors.
cross_program_prefetches: Vec<CrossProgramPrefetch>§is_dynamic: boolTrue if the module contains dynamic computation.
spmd_output_sharding: Option<OpSharding>§spmd_parameters_shardings: Vec<OpSharding>§use_auto_spmd_partitioning: boolUses AutoSharding pass or not.
profile_info: Vec<ProfileInfo>Profile information for the HLO module.
device_assignment: Option<DeviceAssignmentProto>DeviceAssignment object information.
stack_frame_index: Option<StackFrameIndexProto>Stack frames index.
frontend_attributes: Option<FrontendAttributes>Frontend attributes to pass to the XLA backend.
Trait Implementations§
source§impl Clone for HloModuleProto
impl Clone for HloModuleProto
source§fn clone(&self) -> HloModuleProto
fn clone(&self) -> HloModuleProto
Returns a copy of the value. Read more
1.0.0 · 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 HloModuleProto
impl Debug for HloModuleProto
source§impl Default for HloModuleProto
impl Default for HloModuleProto
source§impl Message for HloModuleProto
impl Message for HloModuleProto
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 HloModuleProto
impl PartialEq for HloModuleProto
impl StructuralPartialEq for HloModuleProto
Auto Trait Implementations§
impl Freeze for HloModuleProto
impl RefUnwindSafe for HloModuleProto
impl Send for HloModuleProto
impl Sync for HloModuleProto
impl Unpin for HloModuleProto
impl UnwindSafe for HloModuleProto
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)