جریان تنسور:: عملیات:: ParameterizedTruncatedNormal
#include <random_ops.h>
مقادیر تصادفی را از یک توزیع نرمال خروجی می دهد.
خلاصه
پارامترها ممکن است هر کدام a باشند
اسکالر که برای کل خروجی اعمال می شود، یا بردار طول شکل[0] که پارامترها را برای هر دسته ذخیره می کند.
استدلال ها:
- scope: یک شی Scope
- shape: شکل تانسور خروجی. دسته ها با بعد 0 نمایه می شوند.
- معنی: پارامتر میانگین هر دسته.
- stdevs: پارامتر انحراف استاندارد هر دسته. باید بزرگتر از 0 باشد.
- minvals: حداقل برش. ممکن است بی نهایت باشد.
- maxvals: حداکثر برش. ممکن است بی نهایت + باشد و باید بیشتر از مینوال برای هر دسته باشد.
ویژگی های اختیاری (به Attrs
مراجعه کنید):
- seed: اگر
seed
یاseed2
غیر صفر باشد، مولد اعداد تصادفی توسط دانه داده شده بذر می شود. در غیر این صورت، توسط یک بذر تصادفی بذر می شود. - seed2: دانه دوم برای جلوگیری از برخورد دانه.
برمیگرداند:
-
Output
: ماتریسی از شکل num_batches x samples_per_batch، پر شده با مقادیر نرمال کوتاه تصادفی با استفاده از پارامترهای هر سطر.
سازندگان و ویرانگرها | |
---|---|
ParameterizedTruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input means, :: tensorflow::Input stdevs, :: tensorflow::Input minvals, :: tensorflow::Input maxvals) | |
ParameterizedTruncatedNormal (const :: tensorflow::Scope & scope, :: tensorflow::Input shape, :: tensorflow::Input means, :: tensorflow::Input stdevs, :: tensorflow::Input minvals, :: tensorflow::Input maxvals, const ParameterizedTruncatedNormal::Attrs & attrs) |
صفات عمومی | |
---|---|
operation | |
output |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
توابع استاتیک عمومی | |
---|---|
Seed (int64 x) | |
Seed2 (int64 x) |
سازه ها | |
---|---|
tensorflow:: ops:: ParameterizedTruncatedNormal:: Attrs | تنظیم کننده های ویژگی اختیاری برای ParameterizedTruncatedNormal . |
صفات عمومی
عملیات
Operation operation
خروجی
::tensorflow::Output output
توابع عمومی
ParameterizedTruncatedNormal
ParameterizedTruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals )
ParameterizedTruncatedNormal
ParameterizedTruncatedNormal( const ::tensorflow::Scope & scope, ::tensorflow::Input shape, ::tensorflow::Input means, ::tensorflow::Input stdevs, ::tensorflow::Input minvals, ::tensorflow::Input maxvals, const ParameterizedTruncatedNormal::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 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-27 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::ParameterizedTruncatedNormal Class Reference\n\ntensorflow::ops::ParameterizedTruncatedNormal\n=============================================\n\n`#include \u003crandom_ops.h\u003e`\n\nOutputs random values from a normal distribution.\n\nSummary\n-------\n\nThe parameters may each be a\n\nscalar which applies to the entire output, or a vector of length shape\\[0\\] which stores the parameters for each batch.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- shape: The shape of the output tensor. Batches are indexed by the 0th dimension.\n- means: The mean parameter of each batch.\n- stdevs: The standard deviation parameter of each batch. Must be greater than 0.\n- minvals: The minimum cutoff. May be -infinity.\n- maxvals: The maximum cutoff. May be +infinity, and must be more than the minval for each batch.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/parameterized-truncated-normal/attrs#structtensorflow_1_1ops_1_1_parameterized_truncated_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.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A matrix of shape num_batches x samples_per_batch, filled with random truncated normal values using the parameters for each row.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [ParameterizedTruncatedNormal](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1af8d4ae1d204cc4ef9a6361f11cbb90de)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` means, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` stdevs, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` minvals, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` maxvals)` ||\n| [ParameterizedTruncatedNormal](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1afd00b3375c16739bcc7f72c930c1f751)`(const ::`[tensorflow::Scope](/versions/r2.0/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` shape, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` means, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` stdevs, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` minvals, ::`[tensorflow::Input](/versions/r2.0/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` maxvals, const `[ParameterizedTruncatedNormal::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/parameterized-truncated-normal/attrs#structtensorflow_1_1ops_1_1_parameterized_truncated_normal_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1a3447014cf835b9d848b15705f2e11045) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1a87a77c67acb67f7dabb5cb5673ebb0d9) | `::`[tensorflow::Output](/versions/r2.0/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|------------------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1a9a37bcf56736b38f0eb696e4b39136dc)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1afb3d837950cf0d7cd289cdd5305d2144)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1aef7ad0f3b76382aa50451e91b459cac9)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|-------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1a60be0f9d8ac8255d74a9c8d0a16ba1b6)`(int64 x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/parameterized-truncated-normal/attrs#structtensorflow_1_1ops_1_1_parameterized_truncated_normal_1_1_attrs) |\n| [Seed2](#classtensorflow_1_1ops_1_1_parameterized_truncated_normal_1a90dde5272c669275d2e05df64fdbc647)`(int64 x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/parameterized-truncated-normal/attrs#structtensorflow_1_1ops_1_1_parameterized_truncated_normal_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::ParameterizedTruncatedNormal::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/parameterized-truncated-normal/attrs) | Optional attribute setters for [ParameterizedTruncatedNormal](/versions/r2.0/api_docs/cc/class/tensorflow/ops/parameterized-truncated-normal#classtensorflow_1_1ops_1_1_parameterized_truncated_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### ParameterizedTruncatedNormal\n\n```gdscript\n ParameterizedTruncatedNormal(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n ::tensorflow::Input means,\n ::tensorflow::Input stdevs,\n ::tensorflow::Input minvals,\n ::tensorflow::Input maxvals\n)\n``` \n\n### ParameterizedTruncatedNormal\n\n```gdscript\n ParameterizedTruncatedNormal(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n ::tensorflow::Input means,\n ::tensorflow::Input stdevs,\n ::tensorflow::Input minvals,\n ::tensorflow::Input maxvals,\n const ParameterizedTruncatedNormal::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```"]]