pub struct SparseAccumulatorApplyGradient { /* private fields */ }
Expand description
Builder for the SparseAccumulatorApplyGradient
operation.
Implementations§
Source§impl SparseAccumulatorApplyGradient
impl SparseAccumulatorApplyGradient
Sourcepub fn has_known_shape<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn has_known_shape<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the has_known_shape
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>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>(
&self,
handle: O0,
local_step: O1,
gradient_indices: O2,
gradient_values: O3,
gradient_shape: O4,
scope: &mut Scope,
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>( &self, handle: O0, local_step: O1, gradient_indices: O2, gradient_values: O3, gradient_shape: O4, scope: &mut Scope, ) -> Result<Operation>
Builds the SparseAccumulatorApplyGradient
operation.
Trait Implementations§
Source§impl Default for SparseAccumulatorApplyGradient
impl Default for SparseAccumulatorApplyGradient
Source§fn default() -> SparseAccumulatorApplyGradient
fn default() -> SparseAccumulatorApplyGradient
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SparseAccumulatorApplyGradient
impl RefUnwindSafe for SparseAccumulatorApplyGradient
impl Send for SparseAccumulatorApplyGradient
impl Sync for SparseAccumulatorApplyGradient
impl Unpin for SparseAccumulatorApplyGradient
impl UnwindSafe for SparseAccumulatorApplyGradient
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