Struct tensorflow::ops::StringNGrams
source · pub struct StringNGrams { /* private fields */ }
Expand description
Builder for the StringNGrams
operation.
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 Tsplits<ArgType: Into<DataType>>(self, value: ArgType) -> Self
pub fn Tsplits<ArgType: Into<DataType>>(self, value: ArgType) -> Self
Sets the Tsplits
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>>(
&self,
data: O0,
data_splits: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>( &self, data: O0, data_splits: O1, scope: &mut Scope ) -> Result<Operation>
Builds the StringNGrams
operation.
sourcepub fn build_instance(
&self,
data: Output,
data_splits: Output,
scope: &mut Scope
) -> Result<StringNGramsInst>
pub fn build_instance( &self, data: Output, data_splits: Output, scope: &mut Scope ) -> Result<StringNGramsInst>
Builds a new instance of ‘StringNGrams’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
source§impl Debug for StringNGrams
impl Debug for StringNGrams
source§impl Default for StringNGrams
impl Default for StringNGrams
source§fn default() -> StringNGrams
fn default() -> StringNGrams
Returns the “default value” for a type. Read more
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