Struct tensorflow::ops::GenerateVocabRemapping
source · [−]pub struct GenerateVocabRemapping { /* private fields */ }
Expand description
Builder for the GenerateVocabRemapping
operation.
Implementations
sourceimpl GenerateVocabRemapping
impl GenerateVocabRemapping
sourcepub fn new_vocab_offset<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn new_vocab_offset<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the new_vocab_offset
attribute.
sourcepub fn num_new_vocab<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_new_vocab<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_new_vocab
attribute.
sourcepub fn old_vocab_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn old_vocab_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the old_vocab_size
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,
new_vocab_file: O0,
old_vocab_file: O1,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>>(
&self,
new_vocab_file: O0,
old_vocab_file: O1,
scope: &mut Scope
) -> Result<Operation>
Builds the GenerateVocabRemapping
operation.
sourcepub fn build_instance(
&self,
new_vocab_file: Output,
old_vocab_file: Output,
scope: &mut Scope
) -> Result<GenerateVocabRemappingInst>
pub fn build_instance(
&self,
new_vocab_file: Output,
old_vocab_file: Output,
scope: &mut Scope
) -> Result<GenerateVocabRemappingInst>
Builds a new instance of ‘GenerateVocabRemapping’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations
sourceimpl Debug for GenerateVocabRemapping
impl Debug for GenerateVocabRemapping
sourceimpl Default for GenerateVocabRemapping
impl Default for GenerateVocabRemapping
sourcefn default() -> GenerateVocabRemapping
fn default() -> GenerateVocabRemapping
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for GenerateVocabRemapping
impl Send for GenerateVocabRemapping
impl Sync for GenerateVocabRemapping
impl Unpin for GenerateVocabRemapping
impl UnwindSafe for GenerateVocabRemapping
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more