tensorflow::
ops::
RandomShuffle
#include <random_ops.h>
Randomly shuffles a tensor along its first dimension.
Summary
The tensor is shuffled along dimension 0, such that each
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]]
Args:
- scope: A Scope object
- value: The tensor to be shuffled.
Optional attributes (see
Attrs
):
-
seed: If either
seed
orseed2
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 asvalue
, shuffled along its first dimension.
Constructors and Destructors |
|
---|---|
RandomShuffle
(const ::
tensorflow::Scope
& scope, ::
tensorflow::Input
value)
|
|
RandomShuffle
(const ::
tensorflow::Scope
& scope, ::
tensorflow::Input
value, const
RandomShuffle::Attrs
& attrs)
|
Public attributes |
|
---|---|
operation
|
|
output
|
Public functions |
|
---|---|
node
() const
|
::tensorflow::Node *
|
operator::tensorflow::Input
() const
|
|
operator::tensorflow::Output
() const
|
|
Public static functions |
|
---|---|
Seed
(int64 x)
|
|
Seed2
(int64 x)
|
Structs |
|
---|---|
tensorflow::
|
Optional attribute setters for RandomShuffle . |
Public attributes
Public functions
RandomShuffle
RandomShuffle( const ::tensorflow::Scope & scope, ::tensorflow::Input value, const RandomShuffle::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const