tensorflow:: אופס:: SparseReduceMaxSparse

#include <sparse_ops.h>

מחשב את המקסימום של אלמנטים על פני ממדים של SparseTensor.

סיכום

אופ זה לוקח SparseTensor והוא המקביל הדליל ל- tf.reduce_max() . בניגוד ל- SparseReduceMax , אופ זה מחזיר SparseTensor.

מפחית 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.

החזרות:

בנאים והורסים

SparseReduceMaxSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes)
SparseReduceMaxSparse (const :: tensorflow::Scope & scope, :: tensorflow::Input input_indices, :: tensorflow::Input input_values, :: tensorflow::Input input_shape, :: tensorflow::Input reduction_axes, const SparseReduceMaxSparse::Attrs & attrs)

תכונות ציבוריות

operation
output_indices
output_shape
output_values

פונקציות סטטיות ציבוריות

KeepDims (bool x)

מבנים

tensorflow:: ops:: SparseReduceMaxSparse:: Attrs

קובעי תכונות אופציונליים עבור SparseReduceMaxSparse .

תכונות ציבוריות

מבצע

Operation operation

output_indexe

::tensorflow::Output output_indices

output_shape

::tensorflow::Output output_shape

output_values

::tensorflow::Output output_values

תפקידים ציבוריים

SparseReduceMaxSparse

 SparseReduceMaxSparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes
)

SparseReduceMaxSparse

 SparseReduceMaxSparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input_indices,
  ::tensorflow::Input input_values,
  ::tensorflow::Input input_shape,
  ::tensorflow::Input reduction_axes,
  const SparseReduceMaxSparse::Attrs & attrs
)

פונקציות סטטיות ציבוריות

KeepDims

Attrs KeepDims(
  bool x
)