تدفق التوتر:: العمليات:: الجميع
#include <math_ops.h>
يحسب "المنطقي و" للعناصر عبر أبعاد الموتر.
ملخص
يقلل input
على طول الأبعاد الواردة في axis
. ما لم تكن keep_dims
صحيحة، فسيتم تقليل رتبة الموتر بمقدار 1 لكل إدخال في axis
. إذا كانت keep_dims
صحيحة، فسيتم الاحتفاظ بالأبعاد المخفضة بالطول 1.
الحجج:
- النطاق: كائن النطاق
- الإدخال: الموتر لتقليل.
- المحور: الأبعاد لتقليل. يجب أن يكون في النطاق
[-rank(input), rank(input))
.
السمات الاختيارية (انظر Attrs
):
- keep_dims: إذا كان صحيحًا، فاحتفظ بالأبعاد المخفضة بالطول 1.
العوائد:
-
Output
: الموتر المنخفض.
الأسماء المستعارة:
- تقليل الكل
البنائين والمدمرين | |
---|---|
All (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis) | |
All (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis, const All::Attrs & attrs) |
الصفات العامة | |
---|---|
operation | |
output |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة العامة | |
---|---|
KeepDims (bool x) |
الهياكل | |
---|---|
Tensorflow:: ops:: الكل:: Attrs | محددات السمات الاختيارية للجميع . |
الصفات العامة
عملية
Operation operation
الإخراج
::tensorflow::Output output
الوظائف العامة
الجميع
All( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
الجميع
All( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const All::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 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2025-07-26 (حسب التوقيت العالمي المتفَّق عليه)"],[],[],null,["# tensorflow::ops::All Class Reference\n\ntensorflow::ops::All\n====================\n\n`#include \u003cmath_ops.h\u003e`\n\nComputes the \"logical and\" 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/all/attrs#structtensorflow_1_1ops_1_1_all_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- ReduceAll\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [All](#classtensorflow_1_1ops_1_1_all_1afa71dd1622d638bd8b918bc65593e65e)`(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| [All](#classtensorflow_1_1ops_1_1_all_1a8794d161cee0c0ba7e985e42a60577d4)`(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 `[All::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/all/attrs#structtensorflow_1_1ops_1_1_all_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_all_1ada058970f122dd1210fee3e3ecb13293) | [Operation](/versions/r1.15/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [output](#classtensorflow_1_1ops_1_1_all_1ad6bd0f7a2b1b3f688c09e946677d1542) | `::`[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_all_1a8edc99992721510ec7b9cbf5348c123e)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_all_1ac4be708cfa983d96afbe09f6818afd14)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_all_1af72fb39a903619d8cc8f8a411843dc15)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------|\n| [KeepDims](#classtensorflow_1_1ops_1_1_all_1abe9daccea4c2964938cb9b46bafbdd22)`(bool x)` | [Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/all/attrs#structtensorflow_1_1ops_1_1_all_1_1_attrs) |\n\n| ### Structs ||\n|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::All::Attrs](/versions/r1.15/api_docs/cc/struct/tensorflow/ops/all/attrs) | Optional attribute setters for [All](/versions/r1.15/api_docs/cc/class/tensorflow/ops/all#classtensorflow_1_1ops_1_1_all). |\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### All\n\n```gdscript\n All(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis\n)\n``` \n\n### All\n\n```gdscript\n All(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input input,\n ::tensorflow::Input axis,\n const All::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```"]]