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.
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 Freeze for NcclAllReduce
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