Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
przepływ tensorowy:: ops:: Losowe losowe losowanie:: Atrybuty
#include <random_ops.h>
Opcjonalne ustawiacze atrybutów dla RandomShuffle .
Streszczenie
Funkcje publiczne |
---|
Seed (int64 x) | Jeśli seed lub seed2 jest ustawione na wartość różną od zera, generator liczb losowych jest zaszczepiany przez dane ziarno. |
Seed2 (int64 x) | Drugie ziarno, aby uniknąć kolizji nasion. |
Atrybuty publiczne
ziarno2_
int64 tensorflow::ops::RandomShuffle::Attrs::seed2_ = 0
nasienie_
int64 tensorflow::ops::RandomShuffle::Attrs::seed_ = 0
Funkcje publiczne
Nasienie
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffle::Attrs::Seed(
int64 x
)
Jeśli seed
lub seed2
jest ustawione na wartość różną od zera, generator liczb losowych jest zaszczepiany przez dane ziarno.
W przeciwnym razie jest on zaszczepiany losowo.
Wartość domyślna to 0
Nasienie2
TF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffle::Attrs::Seed2(
int64 x
)
Drugie ziarno, aby uniknąć kolizji nasion.
Wartość domyślna to 0
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-07-26 UTC.
[null,null,["Ostatnia aktualizacja: 2025-07-26 UTC."],[],[],null,["# tensorflow::ops::RandomShuffle::Attrs Struct Reference\n\ntensorflow::ops::RandomShuffle::Attrs\n=====================================\n\n`#include \u003crandom_ops.h\u003e`\n\nOptional attribute setters for [RandomShuffle](/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-shuffle#classtensorflow_1_1ops_1_1_random_shuffle).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs_1acb44ea12909cbd2400522daa49f4b95e)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs_1a9193127d22eea45ee4630dc230d2c57e)` = 0` | `int64` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs_1ab19824179b7cf8cfb8d29e547e28d1c6)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-shuffle/attrs#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs) If either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed. |\n| [Seed2](#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs_1a25965c3e41d807ad3c7c252e1d3a82ea)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-shuffle/attrs#structtensorflow_1_1ops_1_1_random_shuffle_1_1_attrs) A second seed to avoid seed collision. |\n\nPublic attributes\n-----------------\n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffle::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::RandomShuffle::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffle::Attrs::Seed(\n int64 x\n)\n``` \nIf either `seed` or `seed2` are set to be non-zero, the random number generator is seeded by the given seed.\n\nOtherwise, it is seeded by a random seed.\n\nDefaults to 0 \n\n### Seed2\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomShuffle::Attrs::Seed2(\n int64 x\n)\n``` \nA second seed to avoid seed collision.\n\nDefaults to 0"]]