Struct tensorflow::ops::NegTrain
source · pub struct NegTrain { /* private fields */ }
Expand description
Builder for the NegTrain
operation.
Implementations§
source§impl NegTrain
impl NegTrain
sourcepub fn vocab_count<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
pub fn vocab_count<ArgType: Into<Vec<i64>>>(self, value: ArgType) -> Self
Sets the vocab_count
attribute.
sourcepub fn num_negative_samples<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn num_negative_samples<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the num_negative_samples
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>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>(
&self,
w_in: O0,
w_out: O1,
examples: O2,
labels: O3,
lr: O4,
scope: &mut Scope
) -> Result<Operation>
pub fn build<O0: Into<Output>, O1: Into<Output>, O2: Into<Output>, O3: Into<Output>, O4: Into<Output>>( &self, w_in: O0, w_out: O1, examples: O2, labels: O3, lr: O4, scope: &mut Scope ) -> Result<Operation>
Builds the NegTrain
operation.
sourcepub fn build_instance(
&self,
w_in: Output,
w_out: Output,
examples: Output,
labels: Output,
lr: Output,
scope: &mut Scope
) -> Result<NegTrainInst>
pub fn build_instance( &self, w_in: Output, w_out: Output, examples: Output, labels: Output, lr: Output, scope: &mut Scope ) -> Result<NegTrainInst>
Builds a new instance of ‘NegTrain’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for NegTrain
impl Send for NegTrain
impl Sync for NegTrain
impl Unpin for NegTrain
impl UnwindSafe for NegTrain
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