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