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