Struct tensorflow::eager::raw_ops::NegTrain
source · pub struct NegTrain { /* private fields */ }
Expand description
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 target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn target_device_name<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the `` attribute.
sourcepub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>, T4: ToTensorHandle<'a>>(
&self,
ctx: &'a Context,
w_in: &T0,
w_out: &T1,
examples: &T2,
labels: &T3,
lr: &T4
) -> Result<()>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>, T3: ToTensorHandle<'a>, T4: ToTensorHandle<'a>>( &self, ctx: &'a Context, w_in: &T0, w_out: &T1, examples: &T2, labels: &T3, lr: &T4 ) -> Result<()>
Execute neg_train.
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