Struct tensorflow::ops::EditDistance
source · pub struct EditDistance { /* private fields */ }
Expand description
Builder for the EditDistance
operation.
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 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>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>>(
&self,
hypothesis_indices: O0,
hypothesis_values: O1,
hypothesis_shape: O2,
truth_indices: O3,
truth_values: O4,
truth_shape: O5,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>, O5: Into<Output>>( &self, hypothesis_indices: O0, hypothesis_values: O1, hypothesis_shape: O2, truth_indices: O3, truth_values: O4, truth_shape: O5, scope: &mut Scope ) -> Result<Operation>
Builds the EditDistance
operation.
sourcepub fn build_instance(
&self,
hypothesis_indices: Output,
hypothesis_values: Output,
hypothesis_shape: Output,
truth_indices: Output,
truth_values: Output,
truth_shape: Output,
scope: &mut Scope
) -> Result<EditDistanceInst>
pub fn build_instance( &self, hypothesis_indices: Output, hypothesis_values: Output, hypothesis_shape: Output, truth_indices: Output, truth_values: Output, truth_shape: Output, scope: &mut Scope ) -> Result<EditDistanceInst>
Builds a new instance of ‘EditDistance’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for EditDistance
impl Debug for EditDistance
source§impl Default for EditDistance
impl Default for EditDistance
source§fn default() -> EditDistance
fn default() -> EditDistance
Returns the “default value” for a type. Read more
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