tensorflow:: אופס:: SparseReorder

#include <sparse_ops.h>

מסדר מחדש SparseTensor לסדר הקנוני, השורה הראשית.

סיכום

שים לב שעל פי מוסכמה, כל הפעולות הדלילות משמרות את הסדר הקנוני לאורך מספר הממדים ההולך וגובר. הזמן היחיד שניתן להפר את הסדר הוא במהלך מניפולציה ידנית של וקטורי המדדים והערכים כדי להוסיף ערכים.

סידור מחדש אינו משפיע על צורת ה-SparseTensor.

אם לטנזור יש ערכים R ו- N שאינם ריקים, input_indices יש צורה [N, R] , ל-input_values ​​יש אורך N , ול-input_shape יש אורך R

טיעונים:

  • scope: אובייקט Scope
  • input_indexes: 2-D. מטריצת N x R עם המדדים של ערכים לא ריקים ב-SparseTensor, אולי לא בסדר קנוני.
  • input_values: 1-D. N ערכים לא ריקים התואמים ל- input_indices .
  • input_shape: 1-D. צורת הקלט SparseTensor.

החזרות:

  • Output פלט_מדדים: 2-D. מטריצת N x R עם אותם מדדים כמו input_indexs, אבל בסדר קנוני של שורה-מז'ור.
  • Output output_values: 1-D. N ערכים לא ריקים התואמים ל- output_indices .

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

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

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

operation
output_indices
output_values

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

מבצע

Operation operation

output_indexe

::tensorflow::Output output_indices

output_values

::tensorflow::Output output_values

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

SparseReorder

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