تينسورفلو :: العمليات :: NthElement
#include <nn_ops.h>
البحث عن قيم إحصائية الترتيب n
للبعد الأخير.
ملخص
إذا كان الإدخال متجهًا (رتبة -1) ، يبحث عن الإدخالات التي هي القيمة n الأصغر في المتجه ويخرج قيمها كموتّر قياسي.
بالنسبة إلى المصفوفات (إدخال الترتيب الأعلى على التوالي) ، يتم حساب الإدخالات التي تمثل القيمة n الأصغر في كل صف (متجه على طول البعد الأخير). وهكذا ،
values.shape = input.shape[:-1]
الحجج:
- النطاق: كائن النطاق
- الإدخال: 1-D أو أعلى مع البعد الأخير
n+1
على الأقل. - ن: 0-د. موضع المتجه المصنف للاختيار على طول البعد الأخير (على طول كل صف للمصفوفات). النطاق
[0, input.shape[:-1])
لـ n هو[0, input.shape[:-1])
السمات الاختيارية (انظر Attrs
):
- عكس: عند التعيين على True ، ابحث عن القيمة n الأكبر في المتجه والعكس صحيح.
عائدات:
-
Output
: إحصاء الترتيبn
على طول كل شريحة أبعاد أخيرة.
البنائين والمدمرين | |
---|---|
NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n) | |
NthElement (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input n, const NthElement::Attrs & attrs) |
السمات العامة | |
---|---|
operation | |
values |
الوظائف العامة | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
وظائف ثابتة عامة | |
---|---|
Reverse (bool x) |
الهياكل | |
---|---|
tensorflow :: ops :: NthElement :: Attrs | محددات السمات الاختيارية لـ NthElement . |
السمات العامة
عملية
Operation operation
القيم
::tensorflow::Output values
الوظائف العامة
NthElement
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n )
NthElement
NthElement( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input n, const NthElement::Attrs & attrs )
العقدة
::tensorflow::Node * node() const
المشغل :: tensorflow :: الإدخال
operator::tensorflow::Input() const
المشغل :: Tensorflow :: Output
operator::tensorflow::Output() const
وظائف ثابتة عامة
يعكس
Attrs Reverse( bool x )
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-04-20 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"Translation issue"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]