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