Struct tensorflow::eager::raw_ops::GenerateVocabRemapping
source · pub struct GenerateVocabRemapping { /* private fields */ }
Expand description
GenerateVocabRemapping
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/GenerateVocabRemapping
Implementations§
source§impl 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 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,
new_vocab_file: &T0,
old_vocab_file: &T1
) -> Result<[TensorHandle<'a>; 2]>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>>( &self, ctx: &'a Context, new_vocab_file: &T0, old_vocab_file: &T1 ) -> Result<[TensorHandle<'a>; 2]>
Execute generate_vocab_remapping.
Trait Implementations§
source§impl Clone for GenerateVocabRemapping
impl Clone for GenerateVocabRemapping
source§fn clone(&self) -> GenerateVocabRemapping
fn clone(&self) -> GenerateVocabRemapping
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 GenerateVocabRemapping
impl Debug for GenerateVocabRemapping
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§
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