tensorflow:: אופס:: NthElement
#include <nn_ops.h>
מוצא ערכים של סטטיסטיקת הסדר n
עבור הממד האחרון.
תַקצִיר
אם הקלט הוא וקטור (דרגה-1), מוצא את הערכים שהוא הערך ה-n' הקטן ביותר בווקטור ומוציא את הערכים שלהם כטנזור סקלרי.
עבור מטריצות (לפי קלט בדרגה גבוהה יותר), מחשב את הערכים שהוא הערך ה-n' הקטן ביותר בכל שורה (לפי וקטור לאורך הממד האחרון). כָּך,
values.shape = input.shape[:-1]
טיעונים:
- scope: אובייקט Scope
- קלט: 1-D ומעלה עם ממד אחרון לפחות
n+1
. - n: 0-D. מיקום של וקטור ממוין לבחירה לאורך הממד האחרון (לאורך כל שורה עבור מטריצות). טווח חוקי של 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) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
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::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
לַהֲפוֹך
Attrs Reverse( bool x )