tf.raw_ops.SerializeSparse
Сериализует SparseTensor в объект [3] Tensor.
tf.raw_ops.SerializeSparse(
sparse_indices,
sparse_values,
sparse_shape,
out_type=tf.dtypes.string,
name=None
)
| Аргументы | |
|---|---|
sparse_indices | Объект типа int64. 2-мерный. Матрица indices SparseTensor. |
sparse_values | Объект. 1-мерный. Индексы values SparseTensor. |
sparse_shape | Объект типа int64. 1-мерный. Значения shape SparseTensor. |
out_type | Необязательный tf.DType из: tf.string, tf.variant. По умолчанию tf.string. Тип dtype для сериализации. Поддерживаются типы string (по умолчанию) и variant. |
name | Имя операции (необязательно). |
| Возвращаемое значение | |
|---|---|
Объект типа out_type. |
© 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/versions/r2.9/api_docs/python/tf/raw_ops/SerializeSparse