Struct tensorflow::ops::NcclAllReduce
source · pub struct NcclAllReduce { /* private fields */ }
Expand description
Builder for the NcclAllReduce
operation.
Implementations§
source§impl NcclAllReduce
impl NcclAllReduce
sourcepub fn reduction<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn reduction<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the reduction
attribute.
sourcepub fn num_devices<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_devices<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_devices
attribute.
Sets the shared_name
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<O0: Into<Output>>(
&self,
input: O0,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>>( &self, input: O0, scope: &mut Scope ) -> Result<Operation>
Builds the NcclAllReduce
operation.
sourcepub fn build_instance(
&self,
input: Output,
scope: &mut Scope
) -> Result<NcclAllReduceInst>
pub fn build_instance( &self, input: Output, scope: &mut Scope ) -> Result<NcclAllReduceInst>
Builds a new instance of ‘NcclAllReduce’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for NcclAllReduce
impl Debug for NcclAllReduce
source§impl Default for NcclAllReduce
impl Default for NcclAllReduce
source§fn default() -> NcclAllReduce
fn default() -> NcclAllReduce
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for NcclAllReduce
impl Send for NcclAllReduce
impl Sync for NcclAllReduce
impl Unpin for NcclAllReduce
impl UnwindSafe for NcclAllReduce
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