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
: הטנזור המופחת.
כינויים:
- ReduceSum
בנאים והורסים | |
---|---|
Sum (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis) | |
Sum (const :: tensorflow::Scope & scope, :: tensorflow::Input input, :: tensorflow::Input axis, const Sum::Attrs & attrs) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
tensorflow:: ops:: סכום:: Attrs | קובעי תכונות אופציונליים עבור Sum . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
סְכוּם
Sum( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
סְכוּם
Sum( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Sum::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
KeepDims
Attrs KeepDims( bool x )