tensorflow:: אופס:: כֹּל
#include <math_ops.h>
מחשב את ה"לוגי או" של אלמנטים על פני ממדים של טנזור.
תַקצִיר
מפחית input
לאורך הממדים הניתנים axis
. אלא אם כן keep_dims
נכון, דירוג הטנזור מופחת ב-1 עבור כל כניסה axis
. אם keep_dims
נכון, הממדים המופחתים נשמרים עם אורך 1.
טיעונים:
- scope: אובייקט Scope
- קלט: הטנזור להפחתה.
- ציר: הממדים שיש להקטין. חייב להיות בטווח
[-rank(input), rank(input))
.
מאפיינים אופציונליים (ראה Attrs
):
- keep_dims: אם נכון, שמור על מידות מופחתות עם אורך 1.
החזרות:
-
Output
: הטנזור המופחת.
כינויים:
- ReduceAny
בנאים והורסים | |
---|---|
Any (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis) | |
Any (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis, const Any::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
output |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
KeepDims (bool x) |
מבנים | |
---|---|
tensorflow:: ops:: כל:: Attrs | קובעי תכונות אופציונליים עבור Any . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
כֹּל
Any( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
כֹּל
Any( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Any::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
KeepDims
Attrs KeepDims( bool 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::Any Class Reference\n\ntensorflow::ops::Any\n====================\n\n`#include \u003cmath_ops.h\u003e`\n\nComputes the \"logical or\" of elements across dimensions of a tensor.\n\nSummary\n-------\n\nReduces `input` along the dimensions given in `axis`. Unless `keep_dims` is true, the rank of the tensor is reduced by 1 for each entry in `axis`. If `keep_dims` is true, the reduced dimensions are retained with length 1.\n\nArguments:\n\n- scope: A [Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- input: The tensor to reduce.\n- axis: The dimensions to reduce. Must be in the range `[-rank(input), rank(input))`.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/any/attrs#structtensorflow_1_1ops_1_1_any_1_1_attrs)):\n\n- keep_dims: If true, retain reduced dimensions with length 1.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The reduced tensor.\n\n\u003cbr /\u003e\n\nAliases:\n\n- ReduceAny\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [Any](#classtensorflow_1_1ops_1_1_any_1a9be141de430b6d3f762162391320ae4b)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis)` ||\n| [Any](#classtensorflow_1_1ops_1_1_any_1a721eef08c1a6c56258a4cb043e87fc75)`(const ::`[tensorflow::Scope](/versions/r1.15/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` input, ::`[tensorflow::Input](/versions/r1.15/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` axis, const `[Any::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/any/attrs#structtensorflow_1_1ops_1_1_any_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_any_1ac5ba2460f8126a91fcb68168b9951a90) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_any_1a4431c9cc3a60415c5900421f0ab251fa) | `::`[tensorflow::Output](/versions/r1.15/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_any_1a449ddceef1fcc05c33a3441304a3f045)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_any_1adf8cdeb9cfa420de9ecf720c397dba61)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_any_1a17306381a192301c5357760e70f34718)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [KeepDims](#classtensorflow_1_1ops_1_1_any_1a87792f3f167fce28918c0c05b87bd7c7)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/any/attrs#structtensorflow_1_1ops_1_1_any_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::Any::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/any/attrs) | Optional attribute setters for [Any](/versions/r1.15/api_docs/cc/class/tensorflow/ops/any#classtensorflow_1_1ops_1_1_any). |\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### Any\n\n```gdscript\n Any(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis\n)\n``` \n\n### Any\n\n```gdscript\n Any(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis,\n const Any::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### KeepDims\n\n```text\nAttrs KeepDims(\n bool x\n)\n```"]]