সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
#include <random_ops.h>
একটি অভিন্ন বন্টন থেকে র্যান্ডম মান বের করে।
সারাংশ
উত্পন্ন মানগুলি পরিসরে একটি অভিন্ন বন্টন অনুসরণ করে [0, 1)
। নিম্ন আবদ্ধ 0 ব্যাপ্তির মধ্যে অন্তর্ভুক্ত করা হয়, যখন উপরের আবদ্ধ 1 বাদ দেওয়া হয়।
যুক্তি:
- স্কোপ: একটি স্কোপ অবজেক্ট
- আকৃতি: আউটপুট টেনসরের আকৃতি।
- dtype: আউটপুটের ধরন।
ঐচ্ছিক বৈশিষ্ট্য (দেখুন Attrs
):
- বীজ: যদি
seed
বা seed2
অ-শূন্য সেট করা হয়, তাহলে প্রদত্ত বীজ দ্বারা এলোমেলো সংখ্যা জেনারেটর বীজ হয়। অন্যথায়, এটি একটি এলোমেলো বীজ দ্বারা বীজ হয়। - বীজ 2: বীজ সংঘর্ষ এড়াতে একটি দ্বিতীয় বীজ।
রিটার্ন:
-
Output
: অভিন্ন এলোমেলো মান দিয়ে ভরা নির্দিষ্ট আকৃতির একটি টেনসর।
পাবলিক স্ট্যাটিক ফাংশন |
---|
Seed (int64 x) | |
Seed2 (int64 x) | |
পাবলিক বৈশিষ্ট্য
পাবলিক ফাংশন
পাবলিক স্ট্যাটিক ফাংশন
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-26 UTC-তে শেষবার আপডেট করা হয়েছে।"],[],[],null,["# tensorflow::ops::RandomUniform Class Reference\n\ntensorflow::ops::RandomUniform\n==============================\n\n`#include \u003crandom_ops.h\u003e`\n\nOutputs random values from a uniform distribution.\n\nSummary\n-------\n\nThe generated values follow a uniform distribution in the range `[0, 1)`. The lower bound 0 is included in the range, while the upper bound 1 is excluded.\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.\n- dtype: The type of the output.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_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 tensor of the specified shape filled with uniform random values.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [RandomUniform](#classtensorflow_1_1ops_1_1_random_uniform_1ad758763396f811e3da060a04692f3757)`(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, DataType dtype)` ||\n| [RandomUniform](#classtensorflow_1_1ops_1_1_random_uniform_1af801ace5d9f1abc9d79f7faa85b91be1)`(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, DataType dtype, const `[RandomUniform::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_random_uniform_1a48b146cd2bbea78fcf781a469864ef5b) | [Operation](/versions/r2.0/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_random_uniform_1a54d90aa9b91d5e835309793ec96a7c8c) | `::`[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_random_uniform_1ad3b4ee570c67616fea7d0670af60cc64)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_random_uniform_1ab00525e4be653b53523769acea109196)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_random_uniform_1ac3f462ba3c34c4b0d7c759eb376e778c)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------|\n| [Seed](#classtensorflow_1_1ops_1_1_random_uniform_1a73a0bbeaa8d9935acb48c58b8b636644)`(int64 x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs) |\n| [Seed2](#classtensorflow_1_1ops_1_1_random_uniform_1a4821471eea8691d99ec491eef1aedd06)`(int64 x)` | [Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs#structtensorflow_1_1ops_1_1_random_uniform_1_1_attrs) |\n\n| ### Structs ||\n|----------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::RandomUniform::Attrs](/versions/r2.0/api_docs/cc/struct/tensorflow/ops/random-uniform/attrs) | Optional attribute setters for [RandomUniform](/versions/r2.0/api_docs/cc/class/tensorflow/ops/random-uniform#classtensorflow_1_1ops_1_1_random_uniform). |\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### RandomUniform\n\n```gdscript\n RandomUniform(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n DataType dtype\n)\n``` \n\n### RandomUniform\n\n```gdscript\n RandomUniform(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input shape,\n DataType dtype,\n const RandomUniform::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```"]]