tensorflow:: אופס:: CheckNumerics
#include <array_ops.h>
בודק טנזור לערכי NaN ו-Inf.
תַקצִיר
בעת הפעלה, מדווח על שגיאת InvalidArgument
אם tensor
יש ערכים שאינם מספר (NaN) או אינסוף (Inf). אחרת, מעביר את tensor
כפי שהוא.
טיעונים:
- scope: אובייקט Scope
- הודעה: קידומת של הודעת השגיאה.
החזרות:
-
Output
: טנסור הפלט.
בנאים והורסים | |
---|---|
CheckNumerics (const :: tensorflow::Scope & scope, :: tensorflow::Input tensor, StringPiece message) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
CheckNumerics
CheckNumerics( const ::tensorflow::Scope & scope, ::tensorflow::Input tensor, StringPiece message )
צוֹמֶת
::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 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::CheckNumerics Class Reference\n\ntensorflow::ops::CheckNumerics\n==============================\n\n`#include \u003carray_ops.h\u003e`\n\nChecks a tensor for NaN and Inf values.\n\nSummary\n-------\n\nWhen run, reports an `InvalidArgument` error if `tensor` has any values that are not a number (NaN) or infinity (Inf). Otherwise, passes `tensor` as-is.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- message: Prefix of the error message.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The output tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [CheckNumerics](#classtensorflow_1_1ops_1_1_check_numerics_1af1c19dffbcae2ab5c9ab6ee90d68ec39)`(const ::`[tensorflow::Scope](/versions/r2.1/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.1/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` tensor, StringPiece message)` ||\n\n| ### Public attributes ||\n|--------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_check_numerics_1ad484b4d4b0b09c34c94fcdbded72b9da) | [Operation](/versions/r2.1/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_check_numerics_1a88bf227894d8d0ee71fc1c7554210e1d) | `::`[tensorflow::Output](/versions/r2.1/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|--------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_check_numerics_1a9fe40ccbb9d64c89016c3e944fc32a9b)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_check_numerics_1a886f83ed684f5fff6fa69f1d8abdc2a7)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_check_numerics_1a83d2ddff85742175c356e1d71aab2635)`() 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### CheckNumerics\n\n```gdscript\n CheckNumerics(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input tensor,\n StringPiece message\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```"]]