Struct tensorflow::eager::raw_ops::ApproxTopK
source · pub struct ApproxTopK { /* private fields */ }
Expand description
ApproxTopK
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/ApproxTopK
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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
input: &T0
) -> Result<[TensorHandle<'a>; 2]>
pub fn call<'a, T0: ToTensorHandle<'a>>( &self, ctx: &'a Context, input: &T0 ) -> Result<[TensorHandle<'a>; 2]>
Execute approx_top_k.
Trait Implementations§
source§impl Clone for ApproxTopK
impl Clone for ApproxTopK
source§fn clone(&self) -> ApproxTopK
fn clone(&self) -> ApproxTopK
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ApproxTopK
impl Debug for ApproxTopK
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