Struct tensorflow::eager::raw_ops::StringNGrams
source · pub struct StringNGrams { /* private fields */ }
Expand description
StringNGrams
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/StringNGrams
Implementations§
source§impl StringNGrams
impl StringNGrams
sourcepub fn separator<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn separator<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the separator
attribute.
sourcepub fn ngram_widths<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn ngram_widths<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the ngram_widths
attribute.
sourcepub fn left_pad<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn left_pad<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the left_pad
attribute.
sourcepub fn right_pad<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn right_pad<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the right_pad
attribute.
sourcepub fn pad_width<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn pad_width<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the pad_width
attribute.
sourcepub fn preserve_short_sequences<ArgType: Into<bool>>(
self,
value: ArgType
) -> Self
pub fn preserve_short_sequences<ArgType: Into<bool>>( self, value: ArgType ) -> Self
Sets the preserve_short_sequences
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,
data: &T0,
data_splits: &T1
) -> Result<[TensorHandle<'a>; 2]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, data: &T0, data_splits: &T1 ) -> Result<[TensorHandle<'a>; 2]>
Execute string_ngrams.
Trait Implementations§
source§impl Clone for StringNGrams
impl Clone for StringNGrams
source§fn clone(&self) -> StringNGrams
fn clone(&self) -> StringNGrams
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 StringNGrams
impl Debug for StringNGrams
Auto Trait Implementations§
impl RefUnwindSafe for StringNGrams
impl Send for StringNGrams
impl Sync for StringNGrams
impl Unpin for StringNGrams
impl UnwindSafe for StringNGrams
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