tensorflow:: אופס:: SerializeManySparse
#include <sparse_ops.h>
הסדר N
-minibatch SparseTensor
לאובייקט Tensor
[N, 3]
.
תַקצִיר
ל- SparseTensor
חייב להיות דירוג R
גדול מ-1, והממד הראשון מטופל כמימד המיני-אצט. יש למיין אלמנטים של SparseTensor
בסדר הולך וגדל של הממד הראשון הזה. אובייקטי SparseTensor
המסודרים הנכנסים לכל שורה של serialized_sparse
יהיו בעלי דרגה R-1
.
גודל המיניאצ' N
מופק מ- sparse_shape[0]
.
טיעונים:
- scope: אובייקט Scope
- מדדים_דלילים: דו מימדי.
indices
של ה-minibatchSparseTensor
. - sparse_values: 1-D.
values
של ה-minibatchSparseTensor
. - צורה_דלילה: 1-D.
shape
המיניאצ'SparseTensor
.
מאפיינים אופציונליים (ראה Attrs
):
- out_type: ה-
dtype
לשימוש עבור עיבוד בסידרה; הסוגים הנתמכים הםstring
(ברירת מחדל) ו-variant
.
החזרות:
-
Output
: הטנסור serialized_sparse.
בנאים והורסים | |
---|---|
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
SerializeManySparse (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs) |
תכונות ציבוריות | |
---|---|
operation | |
serialized_sparse |
תפקידים ציבוריים | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
פונקציות סטטיות ציבוריות | |
---|---|
OutType (DataType x) |
מבנים | |
---|---|
tensorflow:: ops:: SerializeManySparse:: Attrs | קובעי תכונות אופציונליים עבור SerializeManySparse . |
תכונות ציבוריות
מִבצָע
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
תפקידים ציבוריים
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeManySparse
SerializeManySparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs )
צוֹמֶת
::tensorflow::Node * node() const
מפעיל::tensorflow::קלט
operator::tensorflow::Input() const
אופרטור::tensorflow::פלט
operator::tensorflow::Output() const
פונקציות סטטיות ציבוריות
OutType
Attrs OutType( DataType x )
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-26 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-26 (שעון UTC)."],[],[],null,["# tensorflow::ops::SerializeManySparse Class Reference\n\ntensorflow::ops::SerializeManySparse\n====================================\n\n`#include \u003csparse_ops.h\u003e`\n\nSerialize an `N`-minibatch `SparseTensor` into an `[N, 3]`[Tensor](/versions/r2.3/api_docs/cc/class/tensorflow/tensor#classtensorflow_1_1_tensor) object.\n\nSummary\n-------\n\nThe `SparseTensor` must have rank `R` greater than 1, and the first dimension is treated as the minibatch dimension. Elements of the `SparseTensor` must be sorted in increasing order of this first dimension. The serialized `SparseTensor` objects going into each row of `serialized_sparse` will have rank `R-1`.\n\nThe minibatch size `N` is extracted from `sparse_shape[0]`.\n\nArguments:\n\n- scope: A [Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope) object\n- sparse_indices: 2-D. The `indices` of the minibatch `SparseTensor`.\n- sparse_values: 1-D. The `values` of the minibatch `SparseTensor`.\n- sparse_shape: 1-D. The `shape` of the minibatch `SparseTensor`.\n\n\u003cbr /\u003e\n\nOptional attributes (see [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/serialize-many-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_many_sparse_1_1_attrs)):\n\n- out_type: The `dtype` to use for serialization; the supported types are `string` (default) and `variant`.\n\n\u003cbr /\u003e\n\nReturns:\n\n- [Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output): The serialized_sparse tensor.\n\n\u003cbr /\u003e\n\n| ### Constructors and Destructors ||\n|---|---|\n| [SerializeManySparse](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a8b0ce35d9eb1b1fc37fbe016a56e1d62)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_indices, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_values, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_shape)` ||\n| [SerializeManySparse](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a9433bfca55151b54355f6be6952584e5)`(const ::`[tensorflow::Scope](/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope)` & scope, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_indices, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_values, ::`[tensorflow::Input](/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input)` sparse_shape, const `[SerializeManySparse::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/serialize-many-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_many_sparse_1_1_attrs)` & attrs)` ||\n\n| ### Public attributes ||\n|-----------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------|\n| [operation](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1ad0bf6a7b871bfa34f2e3be438f685117) | [Operation](/versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation) |\n| [serialized_sparse](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1ad8accf23c3264d678f050a59da40ea64) | `::`[tensorflow::Output](/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output) |\n\n| ### Public functions ||\n|---------------------------------------------------------------------------------------------------------------------------------|------------------------|\n| [node](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a7739b8a72c33da0538593ca0f83715e9)`() const ` | `::tensorflow::Node *` |\n| [operator::tensorflow::Input](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a133c0f10bcd9f50787a6e29449ee4654)`() const ` | ` ` ` ` |\n| [operator::tensorflow::Output](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a97858863786b75af5f1b18e86b52470a)`() const ` | ` ` ` ` |\n\n| ### Public static functions ||\n|---------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|\n| [OutType](#classtensorflow_1_1ops_1_1_serialize_many_sparse_1a05cc33d0e457bc120df0e1b365db8ffd)`(DataType x)` | [Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/serialize-many-sparse/attrs#structtensorflow_1_1ops_1_1_serialize_many_sparse_1_1_attrs) |\n\n| ### Structs ||\n|-----------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [tensorflow::ops::SerializeManySparse::Attrs](/versions/r2.3/api_docs/cc/struct/tensorflow/ops/serialize-many-sparse/attrs) | Optional attribute setters for [SerializeManySparse](/versions/r2.3/api_docs/cc/class/tensorflow/ops/serialize-many-sparse#classtensorflow_1_1ops_1_1_serialize_many_sparse). |\n\nPublic attributes\n-----------------\n\n### operation\n\n```text\nOperation operation\n``` \n\n### serialized_sparse\n\n```scdoc\n::tensorflow::Output serialized_sparse\n``` \n\nPublic functions\n----------------\n\n### SerializeManySparse\n\n```gdscript\n SerializeManySparse(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input sparse_indices,\n ::tensorflow::Input sparse_values,\n ::tensorflow::Input sparse_shape\n)\n``` \n\n### SerializeManySparse\n\n```gdscript\n SerializeManySparse(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input sparse_indices,\n ::tensorflow::Input sparse_values,\n ::tensorflow::Input sparse_shape,\n const SerializeManySparse::Attrs & attrs\n)\n``` \n\n### node\n\n```gdscript\n::tensorflow::Node * node() const \n``` \n\n### operator::tensorflow::Input\n\n```gdscript\n operator::tensorflow::Input() const \n``` \n\n### operator::tensorflow::Output\n\n```gdscript\n operator::tensorflow::Output() const \n``` \n\nPublic static functions\n-----------------------\n\n### OutType\n\n```text\nAttrs OutType(\n DataType x\n)\n```"]]