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