tensorflow::ops::SparseCrossHashed
#include <sparse_ops.h>يقوم بتوليد مصفوفة متقاطعة متفرقة من قائمة من الموترات المتفرقة والكثيفة.
ملخص
تأخذ العملية قائمتين، إحداهما من نوع SparseTensor ثنائي الأبعاد والأخرى من نوع Tensor ثنائي الأبعاد، تمثل كل منهما خصائص عمود خصائص واحد. وتُخرج العملية 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")))الحجج:
- النطاق: كائن النطاق
- المؤشرات: ثنائية الأبعاد. مؤشرات كل موتر
SparseTensorمُدخل. - القيم: 1-D. قيم كل
SparseTensor. - الأشكال: 1-D. أشكال كل
SparseTensor. - dense_inputs: أعمدة ثنائية الأبعاد ممثلة بواسطة
Tensorكثيف. - num_buckets: يُستخدم هذا المتغير إذا كانت قيمة hashed_output صحيحة. output = hashed_valuenum_buckets إذا كانت قيمة num_buckets أكبر من صفر، وإلا فإن قيمة hashed_value هي القيمة المُستخدمة.
- strong_hash: قيمة منطقية، إذا كانت صحيحة، فسيتم استخدام siphash مع الملح بدلاً من farmhash.
- الملح: حدد الملح الذي ستستخدمه دالة siphash.
المرتجعات:
-
Outputoutput_indices: 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
مؤشرات الإخراج
::tensorflow::Output output_indices
شكل الإخراج
::tensorflow::Output output_shape
قيم_المخرجات
::tensorflow::Output output_values
الوظائف العامة
SpareCrossHashed
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 و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2026-11-05 (حسب التوقيت العالمي المتفَّق عليه)