tensorflow::ops::SerializeSparse
#include <sparse_ops.h>
Сериализует SparseTensor в объект [3]Tensor.
Сводка
Аргументы:
- scope: объект Scope
- sparse_indices: двумерный массив.
indicesSparseTensor. - sparse_values: одномерный массив.
valuesSparseTensor. - sparse_shape: одномерный массив.
shapeSparseTensor.
Необязательные атрибуты (см. Attrs):
- out_type:
dtype, используемый для сериализации; поддерживаются типыstring(по умолчанию) иvariant.
Возвращает:
-
Output: тензор serialized_sparse.
| Конструкторы и деструкторы | |
|---|---|
SerializeSparse(const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape) | |
SerializeSparse(const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeSparse::Attrs & attrs) |
| Открытые атрибуты | |
|---|---|
operation | |
serialized_sparse | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Открытые статические функции | |
|---|---|
OutType(DataType x) | |
| Структуры | |
|---|---|
| tensorflow::ops::SerializeSparse::Attrs | Методы установки необязательных атрибутов для SerializeSparse. |
Открытые атрибуты
operation
Operation operation
serialized_sparse
::tensorflow::Output serialized_sparse
Открытые функции
SerializeSparse
SerializeSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape )
SerializeSparse
SerializeSparse( const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeSparse::Attrs & attrs )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Открытые статические функции
OutType
Attrs OutType( DataType x )
© 2022 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/cc/class/tensorflow/ops/serialize-sparse