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