Struct tensorflow::eager::raw_ops::TPUReplicateMetadata
source · pub struct TPUReplicateMetadata { /* private fields */ }
Expand description
TPUReplicateMetadata
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/TPUReplicateMetadata
Implementations§
source§impl TPUReplicateMetadata
impl TPUReplicateMetadata
sourcepub fn num_replicas<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_replicas<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_replicas
attribute.
sourcepub fn num_cores_per_replica<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_cores_per_replica<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_cores_per_replica
attribute.
sourcepub fn topology<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn topology<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the topology
attribute.
sourcepub fn device_assignment<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn device_assignment<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the device_assignment
attribute.
sourcepub fn computation_shape<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn computation_shape<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the computation_shape
attribute.
sourcepub fn host_compute_core<ArgType: Into<Vec<String>>>(
self,
value: ArgType
) -> Self
pub fn host_compute_core<ArgType: Into<Vec<String>>>( self, value: ArgType ) -> Self
Sets the host_compute_core
attribute.
sourcepub fn padding_map<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
pub fn padding_map<ArgType: Into<Vec<String>>>(self, value: ArgType) -> Self
Sets the padding_map
attribute.
sourcepub fn step_marker_location<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn step_marker_location<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the step_marker_location
attribute.
sourcepub fn allow_soft_placement<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn allow_soft_placement<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the allow_soft_placement
attribute.
sourcepub fn use_spmd_for_xla_partitioning<ArgType: Into<bool>>(
self,
value: ArgType
) -> Self
pub fn use_spmd_for_xla_partitioning<ArgType: Into<bool>>( self, value: ArgType ) -> Self
Sets the use_spmd_for_xla_partitioning
attribute.
sourcepub fn tpu_compile_options_proto<ArgType: Into<String>>(
self,
value: ArgType
) -> Self
pub fn tpu_compile_options_proto<ArgType: Into<String>>( self, value: ArgType ) -> Self
Sets the tpu_compile_options_proto
attribute.
sourcepub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
Trait Implementations§
source§impl Clone for TPUReplicateMetadata
impl Clone for TPUReplicateMetadata
source§fn clone(&self) -> TPUReplicateMetadata
fn clone(&self) -> TPUReplicateMetadata
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 TPUReplicateMetadata
impl Debug for TPUReplicateMetadata
Auto Trait Implementations§
impl RefUnwindSafe for TPUReplicateMetadata
impl Send for TPUReplicateMetadata
impl Sync for TPUReplicateMetadata
impl Unpin for TPUReplicateMetadata
impl UnwindSafe for TPUReplicateMetadata
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