جریان تنسور:: عملیات:: AddManySparseToTensorsMap
#include <sparse_ops.h>
یک N
-minibatch SparseTensor
به SparseTensorsMap
اضافه کنید ، N
handle را برگردانید.
خلاصه
SparseTensor
رتبه R
با سه تانسور نشان داده می شود: sparse_indices
، sparse_values
و sparse_shape
.
```sparse_indices.shape[1] == sparse_shape.shape[0] == R
AnN
-minibatch ofSparseTensor
objects is represented as aSparseTensor
having a firstsparse_indices
column taking values between[0, N)
, where the minibatch sizeN == sparse_shape[0]
.
The inputSparseTensor
must have rankR
greater than 1, and the first dimension is treated as the minibatch dimension. Elements of theSparseTensor
must be sorted in increasing order of this first dimension. The storedSparseTensor
objects pointed to by each row of the outputsparse_handles
will have rankR-1
.
TheSparseTensor
values can then be read out as part of a minibatch by passing the given keys as vector elements toTakeManySparseFromTensorsMap
. To ensure the correctSparseTensorsMap
is accessed, ensure that the samecontainer
andshared_name
are passed to that Op. If noshared_name
is provided here, instead use the name of the Operation created by callingAddManySparseToTensorsMap
as theshared_name
passed toTakeManySparseFromTensorsMap
. Ensure the Operations are colocated.
Arguments: * scope: A Scope object * sparse_indices: 2-D. Theindices
of the minibatchSparseTensor
.sparse_indices[:, 0]
must be ordered values in[0, N)
. * sparse_values: 1-D. Thevalues
of the minibatchSparseTensor
. * sparse_shape: 1-D. Theshape
of the minibatchSparseTensor
. The minibatch sizeN == sparse_shape[0]
.
Optional attributes (seeAttrs
): * container: The container name for theSparseTensorsMap
created by this op. * shared_name: The shared name for theSparseTensorsMap
created by this op. If blank, the new Operation's unique name is used.
Returns: *Output
: 1-D. The handles of theSparseTensor
now stored in theSparseTensorsMap
. Shape:[N]
.
سازندگان و ویرانگرها | |
---|---|
AddManySparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape) | |
AddManySparseToTensorsMap (const :: tensorflow::Scope & scope, :: tensorflow::Input sparse_indices, :: tensorflow::Input sparse_values, :: tensorflow::Input sparse_shape, const AddManySparseToTensorsMap::Attrs & attrs) |
صفات عمومی | |
---|---|
operation | |
sparse_handles |
توابع عمومی | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
توابع استاتیک عمومی | |
---|---|
Container (StringPiece x) | |
SharedName (StringPiece x) |
سازه ها | |
---|---|
tensorflow:: ops:: AddManySparseToTensorsMap:: Attrs | تنظیم کننده های ویژگی اختیاری برای AddManySparseToTensorsMap . |
صفات عمومی
عملیات
Operation operation
دسته_های پراکنده
::tensorflow::Output sparse_handles
توابع عمومی
AddManySparseToTensorsMap
AddManySparseToTensorsMap( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
AddManySparseToTensorsMap
AddManySparseToTensorsMap( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const AddManySparseToTensorsMap::Attrs & attrs )
گره
::tensorflow::Node * node() const
عملگر::tensorflow::ورودی
operator::tensorflow::Input() const
عملگر::tensorflow::خروجی
operator::tensorflow::Output() const
توابع استاتیک عمومی
ظرف
Attrs Container( StringPiece x )
SharedName
Attrs SharedName( StringPiece x )
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-07-26 بهوقت ساعت هماهنگ جهانی."],[],[],null,["# tensorflow::ops::AddManySparseToTensorsMap Class Reference\n\ntensorflow::ops::AddManySparseToTensorsMap\n==========================================\n\n`#include \u003csparse_ops.h\u003e`\n\n[Add](/versions/r2.3/api_docs/cc/class/tensorflow/ops/add#classtensorflow_1_1ops_1_1_add) an `N`-minibatch `SparseTensor` to a `SparseTensorsMap`, return `N` handles.\n\nSummary\n-------\n\nA `SparseTensor` of rank `R` is represented by three tensors: `sparse_indices`, `sparse_values`, and `sparse_shape`, where\n\n\\`\\`\\`sparse_indices.shape\\[1\\] == sparse_shape.shape\\[0\\] == R \n\n````scdoc\n\n \n An `N`-minibatch of `SparseTensor` objects is represented as a `SparseTensor`\nhaving a first `sparse_indices` column taking values between `[0, N)`, where\nthe minibatch size `N == sparse_shape[0]`.\n \n \n \n The input SparseTensor must have rank R greater than 1, and the first\n dimension is treated as the minibatch dimension. Elements of the SparseTensor\n must be sorted in increasing order of this first dimension. The stored\n SparseTensor objects pointed to by each row of the output sparse_handles\n will have rank R-1.\n\n\n\n \n \n \n The SparseTensor values can then be read out as part of a minibatch by passing\n the given keys as vector elements to /versions/r2.3/api_docs/cc/class/tensorflow/ops/take-many-sparse-from-tensors-map#classtensorflow_1_1ops_1_1_take_many_sparse_from_tensors_map. To ensure\n the correct SparseTensorsMap is accessed, ensure that the same\n container and shared_name are passed to that Op. If no shared_name\n is provided here, instead use the name of the Operation created by calling\n /versions/r2.3/api_docs/cc/class/tensorflow/ops/add-many-sparse-to-tensors-map#classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map as the shared_name passed to\n /versions/r2.3/api_docs/cc/class/tensorflow/ops/take-many-sparse-from-tensors-map#classtensorflow_1_1ops_1_1_take_many_sparse_from_tensors_map. Ensure the Operations are colocated.\n\n\n\n \n \n \n Arguments:\n * scope: A /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_indices[:, 0] must be ordered values in [0, N).\n * sparse_values: 1-D. The `values` of the minibatch `SparseTensor`.\n * sparse_shape: 1-D. The shape of the minibatch SparseTensor.\n The minibatch size N == sparse_shape[0].\n\n\n\n \n \n \n Optional attributes (see /versions/r2.3/api_docs/cc/struct/tensorflow/ops/add-many-sparse-to-tensors-map/attrs#structtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1_1_attrs):\n * container: The container name for the `SparseTensorsMap` created by this op.\n * shared_name: The shared name for the SparseTensorsMap created by this op.\n If blank, the new Operation's unique name is used.\n\n\n\n \n \n \n Returns:\n * /versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output: 1-D. The handles of the SparseTensor now stored in the\n SparseTensorsMap. Shape: [N]. \n\n\n\n \n \n \n \n \n### Constructors and Destructors\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1a74a1831bfd1f27720873c62a4d963e68`(const ::`/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_indices, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_values, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_shape)`\n \n\n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1a77594a24c914fe60afa8f2fffb2be090`(const ::`/versions/r2.3/api_docs/cc/class/tensorflow/scope#classtensorflow_1_1_scope` & scope, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_indices, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_values, ::`/versions/r2.3/api_docs/cc/class/tensorflow/input#classtensorflow_1_1_input` sparse_shape, const `/versions/r2.3/api_docs/cc/struct/tensorflow/ops/add-many-sparse-to-tensors-map/attrs#structtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1_1_attrs` & attrs)`\n \n\n \n \n \n \n \n \n \n### Public attributes\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1a0f5ef46531573dcf0f5db668d43daa9b\n \n \n \n /versions/r2.3/api_docs/cc/class/tensorflow/operation#classtensorflow_1_1_operation\n \n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1ae6a15aa12ca7a7bdeffef3f72e82cbc2\n \n \n \n `::`/versions/r2.3/api_docs/cc/class/tensorflow/output#classtensorflow_1_1_output\n \n \n \n \n \n \n \n \n### Public functions\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1aa2be23efa50022636a98ca3a1901d6f9`() const `\n \n \n \n `::tensorflow::Node *`\n \n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1a2019483d10b34a38eb43056dd01d0a67`() const `\n \n \n \n `\n `\n`\n `\n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1ab252ad5ffa96d26b5cd0d7a06ca1c45b`() const `\n \n \n \n `\n `\n`\n `\n \n \n \n \n \n \n### Public static functions\n\n\n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1ab040c34d4a6550b6f7856758403fe341`(StringPiece x)`\n \n \n \n /versions/r2.3/api_docs/cc/struct/tensorflow/ops/add-many-sparse-to-tensors-map/attrs#structtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1_1_attrs\n \n \n \n \n \n #classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1a437ebb905e580d3d568136057b214620`(StringPiece x)`\n \n \n \n /versions/r2.3/api_docs/cc/struct/tensorflow/ops/add-many-sparse-to-tensors-map/attrs#structtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map_1_1_attrs\n \n \n \n \n \n \n \n \n### Structs\n\n\n \n \n \n \n /versions/r2.3/api_docs/cc/struct/tensorflow/ops/add-many-sparse-to-tensors-map/attrs\n \n \n Optional attribute setters for /versions/r2.3/api_docs/cc/class/tensorflow/ops/add-many-sparse-to-tensors-map#classtensorflow_1_1ops_1_1_add_many_sparse_to_tensors_map. \n\n \n \n \n Public attributes\n \n \n### operation\n\n\n \n\n\n```text\nOperation operation\n```\n\n \n\n \n \n \n### sparse_handles\n\n\n \n\n\n```scdoc\n::tensorflow::Output sparse_handles\n```\n\n \n\n \n Public functions\n \n \n### AddManySparseToTensorsMap\n\n\n \n\n\n```gdscript\n AddManySparseToTensorsMap(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input sparse_indices,\n ::tensorflow::Input sparse_values,\n ::tensorflow::Input sparse_shape\n)\n```\n\n \n\n \n \n \n### AddManySparseToTensorsMap\n\n\n \n\n\n```gdscript\n AddManySparseToTensorsMap(\n const ::tensorflow::Scope & scope,\n ::tensorflow::Input sparse_indices,\n ::tensorflow::Input sparse_values,\n ::tensorflow::Input sparse_shape,\n const AddManySparseToTensorsMap::Attrs & attrs\n)\n```\n\n \n\n \n \n \n### node\n\n\n \n\n\n```gdscript\n::tensorflow::Node * node() const \n```\n\n \n\n \n \n \n### operator::tensorflow::Input\n\n\n \n\n\n```gdscript\n operator::tensorflow::Input() const \n```\n\n \n\n \n \n \n### operator::tensorflow::Output\n\n\n \n\n\n```gdscript\n operator::tensorflow::Output() const \n```\n\n \n\n \n Public static functions\n \n \n### Container\n\n\n \n\n\n```text\nAttrs Container(\n StringPiece x\n)\n```\n\n \n\n \n \n \n### SharedName\n\n\n \n\n\n```text\nAttrs SharedName(\n StringPiece x\n)\n```\n\n \n\n \n\n \n\n \n````"]]