تينسورفلو :: العمليات :: متفرقة متفرقة
#include <sparse_ops.h>
يولد صليبًا متناثرًا من قائمة موترات متفرقة وكثيفة.
ملخص
يأخذ المرجع قائمتين ، واحدة من 2D SparseTensor
وواحدة من 2D 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")))
الحجج:
- النطاق: كائن النطاق
- المؤشرات: 2-D. مؤشرات كل إدخال
SparseTensor
. - القيم: 1-D. قيم كل
SparseTensor
. - الأشكال: 1-D. أشكال كل
SparseTensor
. - المدخلات الكثيفة: 2-D. الأعمدة التي يمثلها
Tensor
كثيفة. - hashed_output: إذا كان هذا صحيحًا ، يتم إرجاع تجزئة التقاطع بدلاً من السلسلة. سيسمح لنا هذا بتجنب التلاعب بالسلسلة.
- num_buckets: يتم استخدامه إذا كان hashed_output صحيحًا. الإخراج = hashed_valuenum_buckets إذا كان num_buckets> 0 آخر hashed_value.
- hash_key: حدد hash_key الذي ستستخدمه وظيفة
FingerprintCat64
لدمج بصمات الأصابع المتقاطعة.
عائدات:
-
Output
output_indices: 2-D. مؤشراتSparseTensor
المتسلسلة. -
Output
output_values: 1-D. القيم غير الفارغة لـSparseTensor
المتسلسلة أو المجزأة. -
Output
: 1-د. شكلSparseTensor
المتسلسل.
البنائين والمدمرين | |
---|---|
SparseCross (const :: tensorflow::Scope & scope, :: tensorflow::InputList indices, :: tensorflow::InputList values, :: tensorflow::InputList shapes, :: tensorflow::InputList dense_inputs, bool hashed_output, int64 num_buckets, int64 hash_key, DataType out_type, DataType internal_type) |
السمات العامة | |
---|---|
operation | |
output_indices | |
output_shape | |
output_values |
السمات العامة
عملية
Operation operation
إخراج_مؤشرات
::tensorflow::Output output_indices
الإخراج_شكل
::tensorflow::Output output_shape
output_values
::tensorflow::Output output_values
الوظائف العامة
متفرقة
SparseCross( const ::tensorflow::Scope & scope, ::tensorflow::InputList indices, ::tensorflow::InputList values, ::tensorflow::InputList shapes, ::tensorflow::InputList dense_inputs, bool hashed_output, int64 num_buckets, int64 hash_key, DataType out_type, DataType internal_type )
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2020-04-20 (حسب التوقيت العالمي المتفَّق عليه)
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"لا يحتوي على المعلومات التي أحتاج إليها."
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"الخطوات معقدة للغاية / كثيرة جدًا."
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"المحتوى قديم."
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"ثمة مشكلة في الترجمة."
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"مشكلة في العيّنات / التعليمات البرمجية"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"غير ذلك"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"يسهُل فهم المحتوى."
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"ساعَدني المحتوى في حلّ مشكلتي."
},{
"type": "thumb-up",
"id": "otherUp",
"label":"غير ذلك"
}]