@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.Multinomial extends Pointer
Draws samples from a multinomial distribution.
Arguments:
* scope: A Scope object
* logits: 2-D Tensor with shape [batch_size, num_classes]. Each slice [i, :]
represents the unnormalized log probabilities for all classes.
* num_samples: 0-D. Number of independent samples to draw for each row slice.
Optional attributes (see Attrs):
* seed: If either seed or seed2 is set to be non-zero, the internal random number
generator is seeded by the given seed. Otherwise, a random seed is used.
* seed2: A second seed to avoid seed collision.
Returns:
* Output: 2-D Tensor with shape [batch_size, num_samples]. Each slice [i, :]
contains the drawn class labels with range [0, num_classes).
| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.Multinomial.Attrs
Optional attribute setters for Multinomial
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
Multinomial(Pointer p)
Pointer cast constructor.
|
Multinomial(tensorflow.Scope scope,
tensorflow.Input logits,
tensorflow.Input num_samples) |
Multinomial(tensorflow.Scope scope,
tensorflow.Input logits,
tensorflow.Input num_samples,
tensorflow.Multinomial.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.Multinomial |
operation(tensorflow.Operation operation) |
tensorflow.Output |
output() |
tensorflow.Multinomial |
output(tensorflow.Output output) |
static tensorflow.Multinomial.Attrs |
OutputDtype(int x) |
static tensorflow.Multinomial.Attrs |
Seed(long x) |
static tensorflow.Multinomial.Attrs |
Seed2(long x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic Multinomial(Pointer p)
Pointer.Pointer(Pointer).public Multinomial(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input logits, @ByVal tensorflow.Input num_samples)
public Multinomial(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input logits, @ByVal tensorflow.Input num_samples, @Const @ByRef tensorflow.Multinomial.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.Multinomial.Attrs Seed(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.Multinomial.Attrs Seed2(@Cast(value="tensorflow::int64") long x)
@ByVal public static tensorflow.Multinomial.Attrs OutputDtype(@Cast(value="tensorflow::DataType") int x)
@ByRef public tensorflow.Operation operation()
public tensorflow.Multinomial operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output output()
public tensorflow.Multinomial output(tensorflow.Output output)
Copyright © 2019. All rights reserved.