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