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