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