@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class RandomShuffle extends Pointer
value[j]
is mapped
to one and only one output[i]
. For example, a mapping that might occur for a
3x2 tensor is:
[[1, 2], [[5, 6],
[3, 4], ==> [1, 2],
[5, 6]] [3, 4]]
Arguments:
* scope: A Scope object
* value: The tensor to be shuffled.
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 same shape and type as value
, shuffled along its first
dimension.Modifier and Type | Class and Description |
---|---|
static class |
RandomShuffle.Attrs
Optional attribute setters for RandomShuffle
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
RandomShuffle(Pointer p)
Pointer cast constructor.
|
RandomShuffle(Scope scope,
Input value) |
RandomShuffle(Scope scope,
Input value,
RandomShuffle.Attrs attrs) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
RandomShuffle |
operation(Operation setter) |
Output |
output() |
RandomShuffle |
output(Output setter) |
static RandomShuffle.Attrs |
Seed(long x) |
static RandomShuffle.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 RandomShuffle(Pointer p)
Pointer(Pointer)
.public Node node()
@ByVal public static RandomShuffle.Attrs Seed(@Cast(value="tensorflow::int64") long x)
@ByVal public static RandomShuffle.Attrs Seed2(@Cast(value="tensorflow::int64") long x)
public RandomShuffle operation(Operation setter)
public RandomShuffle output(Output setter)
Copyright © 2022. All rights reserved.