pub struct HloModuleConfigProto {Show 33 fields
pub entry_computation_layout: Option<ProgramShapeProto>,
pub seed: u64,
pub launch_id: i32,
pub replica_count: i64,
pub num_partitions: i64,
pub param_requires_broadcast_via_collectives: Vec<bool>,
pub use_spmd_partitioning: bool,
pub use_auto_spmd_partitioning: bool,
pub auto_spmd_partitioning_mesh_shape: Vec<i64>,
pub auto_spmd_partitioning_mesh_ids: Vec<i64>,
pub deduplicate_hlo: bool,
pub intra_op_parallelism_threads: i64,
pub device_type: String,
pub debug_options: Option<DebugOptions>,
pub static_device_assignment: Option<DeviceAssignmentProto>,
pub allow_separate_sharding_programs: bool,
pub shardable_value_update_pairs: Vec<ShardableValueUpdatePairProto>,
pub alias_passthrough_params: bool,
pub content_aware_computation_sorting: bool,
pub fusion_config_collection: i32,
pub fusion_config: Vec<BoolList>,
pub dot_config: HashMap<String, Int64List>,
pub layout_config: Vec<Int64ListList>,
pub memory_space_assignment_config: Vec<u64>,
pub phase_ordering_config: Vec<BoolList>,
pub phase_index: i32,
pub allow_spmd_sharding_propagation_to_parameters: Vec<bool>,
pub allow_spmd_sharding_propagation_to_output: Vec<bool>,
pub analysis_allowance_map: HashMap<String, i64>,
pub matrix_unit_operand_precision: i32,
pub fdo_profile: Vec<u8>,
pub device_memory_size: i64,
pub use_shardy_partitioner: bool,
}Expand description
Serialization of HloModuleConfig. See the C++ class definition for descriptions of each field. There are no guarantees of backwards or forwards compatibility. Next id: 35.
Fields§
§entry_computation_layout: Option<ProgramShapeProto>§seed: u64§launch_id: i32§replica_count: i64§num_partitions: i64§param_requires_broadcast_via_collectives: Vec<bool>§use_spmd_partitioning: bool§use_auto_spmd_partitioning: bool§auto_spmd_partitioning_mesh_shape: Vec<i64>§auto_spmd_partitioning_mesh_ids: Vec<i64>§deduplicate_hlo: bool§intra_op_parallelism_threads: i64§device_type: String§debug_options: Option<DebugOptions>§static_device_assignment: Option<DeviceAssignmentProto>§allow_separate_sharding_programs: bool§shardable_value_update_pairs: Vec<ShardableValueUpdatePairProto>§alias_passthrough_params: bool§content_aware_computation_sorting: bool§fusion_config_collection: i32§fusion_config: Vec<BoolList>§dot_config: HashMap<String, Int64List>§layout_config: Vec<Int64ListList>§memory_space_assignment_config: Vec<u64>§phase_ordering_config: Vec<BoolList>§phase_index: i32§allow_spmd_sharding_propagation_to_parameters: Vec<bool>§allow_spmd_sharding_propagation_to_output: Vec<bool>§analysis_allowance_map: HashMap<String, i64>§matrix_unit_operand_precision: i32§fdo_profile: Vec<u8>§device_memory_size: i64§use_shardy_partitioner: boolImplementations§
Source§impl HloModuleConfigProto
impl HloModuleConfigProto
Sourcepub fn fusion_config_collection(&self) -> FusionConfigCollection
pub fn fusion_config_collection(&self) -> FusionConfigCollection
Returns the enum value of fusion_config_collection, or the default if the field is set to an invalid enum value.
Sourcepub fn set_fusion_config_collection(&mut self, value: FusionConfigCollection)
pub fn set_fusion_config_collection(&mut self, value: FusionConfigCollection)
Sets fusion_config_collection to the provided enum value.
Sourcepub fn matrix_unit_operand_precision(&self) -> Precision
pub fn matrix_unit_operand_precision(&self) -> Precision
Returns the enum value of matrix_unit_operand_precision, or the default if the field is set to an invalid enum value.
Sourcepub fn set_matrix_unit_operand_precision(&mut self, value: Precision)
pub fn set_matrix_unit_operand_precision(&mut self, value: Precision)
Sets matrix_unit_operand_precision to the provided enum value.
Trait Implementations§
Source§impl Clone for HloModuleConfigProto
impl Clone for HloModuleConfigProto
Source§fn clone(&self) -> HloModuleConfigProto
fn clone(&self) -> HloModuleConfigProto
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 HloModuleConfigProto
impl Debug for HloModuleConfigProto
Source§impl Default for HloModuleConfigProto
impl Default for HloModuleConfigProto
Source§impl Message for HloModuleConfigProto
impl Message for HloModuleConfigProto
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 HloModuleConfigProto
impl PartialEq for HloModuleConfigProto
impl StructuralPartialEq for HloModuleConfigProto
Auto Trait Implementations§
impl Freeze for HloModuleConfigProto
impl RefUnwindSafe for HloModuleConfigProto
impl Send for HloModuleConfigProto
impl Sync for HloModuleConfigProto
impl Unpin for HloModuleConfigProto
impl UnwindSafe for HloModuleConfigProto
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)