Struct tensorflow::eager::raw_ops::EditDistance
source · pub struct EditDistance { /* private fields */ }
Expand description
EditDistance
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/EditDistance
Implementations§
source§impl EditDistance
impl EditDistance
sourcepub fn normalize<ArgType: Into<bool>>(self, value: ArgType) -> Self
pub fn normalize<ArgType: Into<bool>>(self, value: ArgType) -> Self
Sets the normalize
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>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>, T4: ToTensorHandle<'a>, T5: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
hypothesis_indices: &T0,
hypothesis_values: &T1,
hypothesis_shape: &T2,
truth_indices: &T3,
truth_values: &T4,
truth_shape: &T5
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>, T4: ToTensorHandle<'a>, T5: ToTensorHandle<'a>>( &self, ctx: &'a Context, hypothesis_indices: &T0, hypothesis_values: &T1, hypothesis_shape: &T2, truth_indices: &T3, truth_values: &T4, truth_shape: &T5 ) -> Result<TensorHandle<'a>>
Execute edit_distance.
Trait Implementations§
source§impl Clone for EditDistance
impl Clone for EditDistance
source§fn clone(&self) -> EditDistance
fn clone(&self) -> EditDistance
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 EditDistance
impl Debug for EditDistance
Auto Trait Implementations§
impl RefUnwindSafe for EditDistance
impl Send for EditDistance
impl Sync for EditDistance
impl Unpin for EditDistance
impl UnwindSafe for EditDistance
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