tensorflow:: אופס:: SparseCrossHashed
#include <sparse_ops.h>יוצר צלב דליל מתוך רשימה של טנסורים דלים וצפופים.
תַקצִיר
המבצע לוקח שתי רשימות, אחת של 2D SparseTensor ואחת של 2D Tensor , כל אחת מייצגת תכונות של עמודת תכונה אחת. הוא מוציא 2D SparseTensor עם הצלבות אצווה של תכונות אלה.
לדוגמה, אם הכניסות הן
inputs[0]: SparseTensor with shape = [2, 2] [0, 0]: "a" [1, 0]: "b" [1, 1]: "c" inputs[1]: SparseTensor with shape = [2, 1] [0, 0]: "d" [1, 0]: "e" inputs[2]: Tensor [["f"], ["g"]]
אז הפלט יהיה
shape = [2, 2] [0, 0]: "a_X_d_X_f" [1, 0]: "b_X_e_X_g" [1, 1]: "c_X_e_X_g"
אם hashed_output=true אז הפלט יהיה
shape = [2, 2]
[0, 0]: FingerprintCat64(
Fingerprint64("f"), FingerprintCat64(
Fingerprint64("d"), Fingerprint64("a")))
[1, 0]: FingerprintCat64(
Fingerprint64("g"), FingerprintCat64(
Fingerprint64("e"), Fingerprint64("b")))
[1, 1]: FingerprintCat64(
Fingerprint64("g"), FingerprintCat64(
Fingerprint64("e"), Fingerprint64("c")))טיעונים:
- scope: אובייקט Scope
- מדדים: 2-D. מדדים של כל קלט
SparseTensor. - ערכים: 1-D. ערכים של כל
SparseTensor. - צורות: 1-D. צורות של כל
SparseTensor. - כניסות צפופות: 2-D. עמודות המיוצגות על ידי
Tensorצפוף. - num_buckets: הוא משמש אם hashed_output נכון. פלט = hashed_valuenum_buckets אם num_buckets > 0 אחר hashed_value.
- strong_hash: בוליאני, אם זה נכון, ישמש סיפאש עם מלח במקום farmhash.
- salt: ציין את המלח שישמש את פונקציית הסיפאש.
החזרות:
-
Outputפלט_מדדים: 2-D. מדדים שלSparseTensorהמשורשר. -
Outputoutput_values: 1-D. ערכים לא ריקים שלSparseTensorהמשורשר או הגובב. -
Outputoutput_shape: 1-D. צורת ה-SparseTensorהמשורשר.
בנאים והורסים | |
|---|---|
SparseCrossHashed (const :: tensorflow::Scope & scope, :: tensorflow::InputList indices, :: tensorflow::InputList values, :: tensorflow::InputList shapes, :: tensorflow::InputList dense_inputs, :: tensorflow::Input num_buckets, :: tensorflow::Input strong_hash, :: tensorflow::Input salt) |
תכונות ציבוריות | |
|---|---|
operation | |
output_indices | |
output_shape | |
output_values | |
תכונות ציבוריות
מִבצָע
Operation operation
output_indexe
::tensorflow::Output output_indices
output_shape
::tensorflow::Output output_shape
output_values
::tensorflow::Output output_values
תפקידים ציבוריים
SparseCrossHashed
SparseCrossHashed( const ::tensorflow::Scope & scope, ::tensorflow::InputList indices, ::tensorflow::InputList values, ::tensorflow::InputList shapes, ::tensorflow::InputList dense_inputs, ::tensorflow::Input num_buckets, ::tensorflow::Input strong_hash, ::tensorflow::Input salt )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-27 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-27 (שעון UTC)."],[],[]]