Struct tensorflow::eager::raw_ops::StatelessMultinomial
source · pub struct StatelessMultinomial { /* private fields */ }
Expand description
StatelessMultinomial
See : https://www.tensorflow.org/api_docs/python/tf/raw_ops/StatelessMultinomial
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 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>>(
&self,
ctx: &'a Context,
logits: &T0,
num_samples: &T1,
seed: &T2
) -> Result<TensorHandle<'a>>
pub fn call<'a, T0: ToTensorHandle<'a>, T1: ToTensorHandle<'a>, T2: ToTensorHandle<'a>>( &self, ctx: &'a Context, logits: &T0, num_samples: &T1, seed: &T2 ) -> Result<TensorHandle<'a>>
Execute stateless_multinomial.
Trait Implementations§
source§impl Clone for StatelessMultinomial
impl Clone for StatelessMultinomial
source§fn clone(&self) -> StatelessMultinomial
fn clone(&self) -> StatelessMultinomial
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for StatelessMultinomial
impl Debug for StatelessMultinomial
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