Struct tensorflow::ops::Gather
source · pub struct Gather { /* private fields */ }
Expand description
Builder for the Gather
operation.
Implementations§
source§impl Gather
impl Gather
sourcepub fn validate_indices<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn validate_indices<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the validate_indices
attribute.
sourcepub fn Tparams<ArgType: Into<DataType>>(self, value: ArgType) -> Self
pub fn Tparams<ArgType: Into<DataType>>(self, value: ArgType) -> Self
Sets the Tparams
attribute.
sourcepub fn Tindices<ArgType: Into<DataType>>(self, value: ArgType) -> Self
pub fn Tindices<ArgType: Into<DataType>>(self, value: ArgType) -> Self
Sets the Tindices
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>>(
&self,
params: O0,
indices: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, params: O0, indices: O1, scope: &mut Scope ) -> Result<Operation>
Builds the Gather
operation.
sourcepub fn build_instance(
&self,
params: Output,
indices: Output,
scope: &mut Scope
) -> Result<GatherInst>
pub fn build_instance( &self, params: Output, indices: Output, scope: &mut Scope ) -> Result<GatherInst>
Builds a new instance of ‘Gather’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Gather
impl Send for Gather
impl Sync for Gather
impl Unpin for Gather
impl UnwindSafe for Gather
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