تدفق التوتر:: العمليات:: العد حتى
#include <state_ops.h>
يزيد "المرجع" حتى يصل إلى "الحد".
ملخص
الحجج:
- النطاق: كائن النطاق
- المرجع: يجب أن يكون من عقدة
Variable
العددية. - الحد: إذا كانت زيادة المرجع ستجعله أعلى من الحد، فسيؤدي بدلاً من ذلك إلى إنشاء خطأ "OutOfRange".
العوائد:
-
Output
: نسخة من الإدخال قبل الزيادة. إذا لم يكن هناك شيء آخر يعدل المدخلات، فستكون القيم المنتجة جميعها متميزة.
البنائين والمدمرين | |
---|---|
CountUpTo (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, int64 limit) |
الصفات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
العد حتى
CountUpTo( const ::tensorflow::Scope & scope, ::tensorflow::Input ref, int64 limit )
العقدة
::tensorflow::Node * node() const
المشغل::tensorflow::الإدخال
operator::tensorflow::Input() const
المشغل::tensorflow::الإخراج
operator::tensorflow::Output() const
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::CountUpTo Class Reference\n\ntensorflow::ops::CountUpTo\n==========================\n\n`#include \u003cstate_ops.h\u003e`\n\nIncrements 'ref' until it reaches 'limit'.\n\nSummary\n-------\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- ref: Should be from a scalar [Variable](/versions/r2.3/api_docs/cc/class/tensorflow/ops/variable#classtensorflow_1_1ops_1_1_variable) node.\n- limit: If incrementing ref would bring it above limit, instead generates an 'OutOfRange' error.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): A copy of the input before increment. If nothing else modifies the input, the values produced will all be distinct.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [CountUpTo](#classtensorflow_1_1ops_1_1_count_up_to_1a8e312ef44f15d31e4aeab02aa13bab92)`(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)` ref, int64 limit)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_count_up_to_1a6375a212ad79358549763db02e6d67cc) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_count_up_to_1a197a681069a4b7425466c72ebf9aa9e6) | `::`[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_count_up_to_1ab2ba97fcf76a8506b6bde0300dda5a8e)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_count_up_to_1a9de83029d3a9d01cfe07058ede299108)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_count_up_to_1a0db42bbc82750886632775f3c46445e8)`() const ` | ` ` ` ` |\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### CountUpTo\n\n```gdscript\n CountUpTo(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input ref,\n int64 limit\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```"]]