Struct tensorflow::eager::raw_ops::TopKV2
source · pub struct TopKV2 { /* private fields */ }
Expand description
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 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>, T1: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
input: &T0,
k: &T1
) -> Result<[TensorHandle<'a>; 2]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, input: &T0, k: &T1 ) -> Result<[TensorHandle<'a>; 2]>
Execute top_kv2.
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