tensorflow:: אופס:: אקראי רגיל
#include <random_ops.h>
מוציא ערכים אקראיים מהתפלגות נורמלית.
תַקצִיר
לערכים שנוצרו יהיו ממוצע 0 וסטיית תקן 1.
טיעונים:
- scope: אובייקט Scope
- צורה: צורת טנסור הפלט.
- dtype: סוג הפלט.
מאפיינים אופציונליים (ראה Attrs
):
- seed: אם
seed
אוseed2
מוגדרים כלא-אפס, מחולל המספרים האקראיים מוזרע על ידי ה-seed הנתון. אחרת, הוא נזרע על ידי זרע אקראי. - seed2: זרע שני כדי למנוע התנגשות זרע.
החזרות:
-
Output
: טנזור של הצורה שצוינה מלא בערכים נורמליים אקראיים.
בנאים והורסים | |
---|---|
RandomNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype) | |
RandomNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, DataType dtype, const RandomNormal::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
Seed (int64 x) | |
Seed2 (int64 x) |
מבנים | |
---|---|
tensorflow:: ops:: RandomNormal:: Attrs | קובעי תכונות אופציונליים עבור RandomNormal . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
אקראי רגיל
RandomNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype )
אקראי רגיל
RandomNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, DataType dtype, const RandomNormal::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
זֶרַע
Attrs Seed( int64 x )
זרע 2
Attrs Seed2( int64 x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::RandomNormal Class Reference\n\ntensorflow::ops::RandomNormal\n=============================\n\n`#include \u003crandom_ops.h\u003e`\n\nOutputs random values from a normal distribution.\n\nSummary\n-------\n\nThe generated values will have mean 0 and standard deviation 1.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- shape: The shape of the output tensor.\n- dtype: The type of the output.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs)):\n\n- 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.\n- seed2: A second seed to avoid seed collision.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A tensor of the specified shape filled with random normal values.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RandomNormal](#classtensorflow_1_1ops_1_1_random_normal_1a7b41dc701cdee57b719f6abecd04670e)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape, DataType dtype)` ||\n| [RandomNormal](#classtensorflow_1_1ops_1_1_random_normal_1a64b0e935c4c1d4a47c6f986121add84c)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape, DataType dtype, const `[RandomNormal::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_random_normal_1ac47fd518b235cd1e014afceb66d7f306) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_random_normal_1a02c28c9d84b4b07ca4e80b016da0ecd4) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|-------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_random_normal_1a1a40dd145b64991a7d58c8048c78ebba)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_random_normal_1a87b2066f673bc74872fe7646084dd9ae)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_random_normal_1a21f1b07cb82b038ec549d30297ba37a0)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|--------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#classtensorflow_1_1ops_1_1_random_normal_1adcde4468e983c17b0051ecad4c5c3cd6)`(int64 x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs) |\n| [Seed2](#classtensorflow_1_1ops_1_1_random_normal_1a72ff9c5ac216023bca9894fe971ed85b)`(int64 x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs#structtensorflow_1_1ops_1_1_random_normal_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::RandomNormal::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/random-normal/attrs) | Optional attribute setters for [RandomNormal](/versions/r2.3/api_docs/cc/class/tensorflow/ops/random-normal#classtensorflow_1_1ops_1_1_random_normal). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### output\n\n```text\n::tensorflow::Output output\n``` \n\nPublic functions\n----------------\n\n### RandomNormal\n\n```gdscript\n RandomNormal(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n DataType dtype\n)\n``` \n\n### RandomNormal\n\n```gdscript\n RandomNormal(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n DataType dtype,\n const RandomNormal::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### Seed\n\n```text\nAttrs Seed(\n int64 x\n)\n``` \n\n### Seed2\n\n```text\nAttrs Seed2(\n int64 x\n)\n```"]]