@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class RandomUniformInt extends Pointer
[minval, maxval)
.
The lower bound minval
is included in the range, while the upper bound
maxval
is excluded.
The random integers are slightly biased unless maxval - minval
is an exact
power of two. The bias is small for values of maxval - minval
significantly
smaller than the range of the output (either 2^32
or 2^64
).
Arguments:
* scope: A Scope object
* shape: The shape of the output tensor.
* minval: 0-D. Inclusive lower bound on the generated integers.
* maxval: 0-D. Exclusive upper bound on the generated integers.
Optional attributes (see Attrs
):
* seed: If either seed
or seed2
are set to be non-zero, the random number
generator is seeded by the given seed. Otherwise, it is seeded by a
random seed.
* seed2: A second seed to avoid seed collision.
Returns:
* Output
: A tensor of the specified shape filled with uniform random integers.Modifier and Type | Class and Description |
---|---|
static class |
RandomUniformInt.Attrs
Optional attribute setters for RandomUniformInt
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RandomUniformInt(Pointer p)
Pointer cast constructor.
|
RandomUniformInt(Scope scope,
Input shape,
Input minval,
Input maxval) |
RandomUniformInt(Scope scope,
Input shape,
Input minval,
Input maxval,
RandomUniformInt.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
RandomUniformInt |
operation(Operation setter) |
Output |
output() |
RandomUniformInt |
output(Output setter) |
static RandomUniformInt.Attrs |
Seed(long x) |
static RandomUniformInt.Attrs |
Seed2(long x) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public RandomUniformInt(Pointer p)
Pointer(Pointer)
.public RandomUniformInt(@Const @ByRef Scope scope, @ByVal Input shape, @ByVal Input minval, @ByVal Input maxval)
public Node node()
@ByVal public static RandomUniformInt.Attrs Seed(@Cast(value="tensorflow::int64") long x)
@ByVal public static RandomUniformInt.Attrs Seed2(@Cast(value="tensorflow::int64") long x)
public RandomUniformInt operation(Operation setter)
public RandomUniformInt output(Output setter)
Copyright © 2022. All rights reserved.