Struct tensorflow::ops::SparseAccumulatorApplyGradient
source · 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.
sourcepub fn build_instance(
&self,
handle: Output,
local_step: Output,
gradient_indices: Output,
gradient_values: Output,
gradient_shape: Output,
scope: &mut Scope
) -> Result<SparseAccumulatorApplyGradientInst>
pub fn build_instance( &self, handle: Output, local_step: Output, gradient_indices: Output, gradient_values: Output, gradient_shape: Output, scope: &mut Scope ) -> Result<SparseAccumulatorApplyGradientInst>
Builds a new instance of ‘SparseAccumulatorApplyGradient’ Operation with it’s Outputs and Inputs exposed as methods.
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 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