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