Struct tensorflow::ops::Skipgram
source · pub struct Skipgram { /* private fields */ }
Expand description
Builder for the Skipgram
operation.
Implementations§
source§impl Skipgram
impl Skipgram
sourcepub fn filename<ArgType: Into<String>>(self, value: ArgType) -> Self
pub fn filename<ArgType: Into<String>>(self, value: ArgType) -> Self
Sets the filename
attribute.
sourcepub fn batch_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn batch_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the batch_size
attribute.
sourcepub fn window_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn window_size<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the window_size
attribute.
sourcepub fn min_count<ArgType: Into<i64>>(self, value: ArgType) -> Self
pub fn min_count<ArgType: Into<i64>>(self, value: ArgType) -> Self
Sets the min_count
attribute.
sourcepub fn subsample<ArgType: Into<f32>>(self, value: ArgType) -> Self
pub fn subsample<ArgType: Into<f32>>(self, value: ArgType) -> Self
Sets the subsample
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_instance(&self, scope: &mut Scope) -> Result<SkipgramInst>
pub fn build_instance(&self, scope: &mut Scope) -> Result<SkipgramInst>
Builds a new instance of ‘Skipgram’ Operation with it’s Outputs and Inputs exposed as methods.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Skipgram
impl Send for Skipgram
impl Sync for Skipgram
impl Unpin for Skipgram
impl UnwindSafe for Skipgram
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