tf.random_index_shuffle
Stay organized with collections
Save and categorize content based on your preferences.
Outputs the position of value
in a permutation of [0, ..., max_index].
tf.random_index_shuffle(
index, seed, max_index, rounds=4, name=None
)
Output values are a bijection of the index
for any combination and seed
and max_index
.
If multiple inputs are vectors (matrix in case of seed) then the size of the
first dimension must match.
The outputs are deterministic.
Args |
index
|
A Tensor . Must be one of the following types: int32 , uint32 , int64 , uint64 .
A scalar tensor or a vector of dtype dtype . The index (or indices) to be shuffled. Must be within [0, max_index].
|
seed
|
A Tensor . Must be one of the following types: int32 , uint32 , int64 , uint64 .
A tensor of dtype Tseed and shape [3] or [n, 3]. The random seed.
|
max_index
|
A Tensor . Must have the same type as index .
A scalar tensor or vector of dtype dtype . The upper bound(s) of the interval (inclusive).
|
rounds
|
An optional int . Defaults to 4 .
The number of rounds to use the in block cipher.
|
name
|
A name for the operation (optional).
|
Returns |
A Tensor . Has the same type as index .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2022-10-28 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2022-10-28 UTC."],[],[]]