tensorflow::ops::SerializeSparse
#include <sparse_ops.h>
Сериализовать SparseTensor в объект [3]Tensor.
Summary
Arguments:
- scope: Объект Scope
- sparse_indices: 2-мерный. Индексы
indicesSparseTensor. - sparse_values: 1-мерный. Значения
valuesSparseTensor. - sparse_shape: 1-мерный. Форма
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 )
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.3/api_docs/cc/class/tensorflow/ops/serialize-sparse