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