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