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.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for NegTrain
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