tensorflow:: אופס:: SparseReduceMax
#include <sparse_ops.h>
מחשב את המקסימום של אלמנטים על פני ממדים של SparseTensor.
תַקצִיר
אופ זה לוקח SparseTensor והוא המקביל הדליל ל- tf.reduce_max()
. בפרט, האופ הזה גם מחזיר Tensor
צפוף במקום דליל.
מפחית sp_input
לאורך הממדים הניתנים ב- reduction_axes
. אלא אם כן keep_dims
נכון, דרגת הטנזור מופחתת ב-1 עבור כל ערך ב- reduction_axes
. אם keep_dims
נכון, הממדים המופחתים נשמרים עם אורך 1.
אם reduction_axes
אין ערכים, כל הממדים מצטמצמים ומוחזר טנזור עם אלמנט בודד. בנוסף, הצירים יכולים להיות שליליים, המתפרשים לפי כללי האינדקס ב-Python.
טיעונים:
- scope: אובייקט Scope
- input_indexes: 2-D. מטריצת
N x R
עם המדדים של ערכים לא ריקים ב-SparseTensor, אולי לא בסדר קנוני. - input_values: 1-D.
N
ערכים לא ריקים התואמים ל-input_indices
. - input_shape: 1-D. צורת הקלט SparseTensor.
- הפחתה_צירים: 1-D. Length-
K
וקטור המכיל את צירי ההפחתה.
מאפיינים אופציונליים (ראה Attrs
):
- keep_dims: אם נכון, שמור על מידות מופחתות עם אורך 1.
החזרות:
בנאים והורסים | |
---|---|
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes) | |
SparseReduceMax (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMax::Attrs & attrs) |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
מבנים | |
---|---|
tensorflow:: ops:: SparseReduceMax:: Attrs | קובעי תכונות אופציונליים עבור SparseReduceMax . |
תכונות ציבוריות
מִבצָע
Operation operation
תְפוּקָה
::tensorflow::Output output
תפקידים ציבוריים
SparseReduceMax
SparseReduceMax(
const ::tensorflow::Scope & scope,
::tensorflow::Input input_indices,
::tensorflow::Input input_values,
::tensorflow::Input input_shape,
::tensorflow::Input reduction_axes
)
SparseReduceMax
SparseReduceMax(
const ::tensorflow::Scope & scope,
::tensorflow::Input input_indices,
::tensorflow::Input input_values,
::tensorflow::Input input_shape,
::tensorflow::Input reduction_axes,
const SparseReduceMax::Attrs & attrs
)
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
KeepDims
Attrs KeepDims(
bool x
)