Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
#include <random_ops.h>
Opcjonalne ustawiacze atrybutów dla RandomUniform .
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
Funkcje publiczne
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::RandomUniform::Attrs Struct Reference\n\ntensorflow::ops::RandomUniform::Attrs\n=====================================\n\n`#include \u003crandom_ops.h\u003e`\n\nOptional attribute setters for [RandomUniform](/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-uniform#classtensorflow_1_1ops_1_1_random_uniform).\n\nSummary\n-------\n\n| ### Public attributes ||\n|----------------------------------------------------------------------------------------------------------|---------|\n| [seed2_](#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1ad689294d25c463a7c73afee76cf8a075)` = 0` | `int64` |\n| [seed_](#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1aefa9f61d1ff62dff58b23f2be625b7ca)` = 0` | `int64` |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs_1a8571b5a8e02a087a716746ec72d3ea7b)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_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_uniform_1_1_attrs_1a54c50a5e1df50ec7be7ebad10102dce8)`(int64 x)` | `TF_MUST_USE_RESULT `[Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs) A second seed to avoid seed collision. |\n\nPublic attributes\n-----------------\n\n### seed2_\n\n```scdoc\nint64 tensorflow::ops::RandomUniform::Attrs::seed2_ = 0\n``` \n\n### seed_\n\n```scdoc\nint64 tensorflow::ops::RandomUniform::Attrs::seed_ = 0\n``` \n\nPublic functions\n----------------\n\n### Seed\n\n```scdoc\nTF_MUST_USE_RESULT Attrs tensorflow::ops::RandomUniform::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::RandomUniform::Attrs::Seed2(\n int64 x\n)\n``` \nA second seed to avoid seed collision.\n\nDefaults to 0"]]