Spec-Zone.ru › TensorFlow 2.9

tf.raw_ops.SerializeSparse

Сериализует SparseTensor в объект [3] Tensor.

Представления псевдонимов

Псевдонимы для миграции

Подробнее см. руководство по миграции.

tf.compat.v1.raw_ops.SerializeSparse

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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API