Struct tensorflow::eager::raw_ops::FixedUnigramCandidateSampler
source · pub struct FixedUnigramCandidateSampler { /* private fields */ }
Expand description
FixedUnigramCandidateSampler
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/FixedUnigramCandidateSampler
Implementations§
source§impl FixedUnigramCandidateSampler
impl FixedUnigramCandidateSampler
sourcepub fn num_sampled<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_sampled<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_sampled
attribute.
sourcepub fn range_max<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn range_max<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the range_max
attribute.
sourcepub fn vocab_file<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn vocab_file<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the vocab_file
attribute.
sourcepub fn distortion<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn distortion<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the distortion
attribute.
sourcepub fn num_reserved_ids<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_reserved_ids<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_reserved_ids
attribute.
sourcepub fn num_shards<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_shards<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_shards
attribute.
sourcepub fn unigrams<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
pub fn unigrams<ArgType: Into<Vec<f32>>>(self, value: ArgType) -> Self
Sets the unigrams
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>>(
&self,
ctx: &'a Context,
true_classes: &T0
) -> Result<[TensorHandle<'a>; 3]>
pub fn call<'a, T0: ToTensorHandle<'a>>( &self, ctx: &'a Context, true_classes: &T0 ) -> Result<[TensorHandle<'a>; 3]>
Execute fixed_unigram_candidate_sampler.
Trait Implementations§
source§impl Clone for FixedUnigramCandidateSampler
impl Clone for FixedUnigramCandidateSampler
source§fn clone(&self) -> FixedUnigramCandidateSampler
fn clone(&self) -> FixedUnigramCandidateSampler
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 FixedUnigramCandidateSampler
impl Debug for FixedUnigramCandidateSampler
Auto Trait Implementations§
impl RefUnwindSafe for FixedUnigramCandidateSampler
impl Send for FixedUnigramCandidateSampler
impl Sync for FixedUnigramCandidateSampler
impl Unpin for FixedUnigramCandidateSampler
impl UnwindSafe for FixedUnigramCandidateSampler
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