Struct tensorflow::ops::TPUReplicateMetadata
source · pub struct TPUReplicateMetadata { /* private fields */ }
Expand description
Builder for the TPUReplicateMetadata
operation.
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 add_control_input(self, op: Operation) -> Self
pub fn add_control_input(self, op: Operation) -> Self
Adds a control input.
sourcepub fn build(&self, scope: &mut Scope) -> Result<Operation>
pub fn build(&self, scope: &mut Scope) -> Result<Operation>
Builds the TPUReplicateMetadata
operation.
sourcepub fn build_instance(
&self,
scope: &mut Scope
) -> Result<TPUReplicateMetadataInst>
pub fn build_instance( &self, scope: &mut Scope ) -> Result<TPUReplicateMetadataInst>
Builds a new instance of ‘TPUReplicateMetadata’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for TPUReplicateMetadata
impl Debug for TPUReplicateMetadata
source§impl Default for TPUReplicateMetadata
impl Default for TPUReplicateMetadata
source§fn default() -> TPUReplicateMetadata
fn default() -> TPUReplicateMetadata
Returns the “default value” for a type. Read more
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