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