Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SerializeManySparse

#include <sparse_ops.h>

Сериализовать N-мини-пакет SparseTensor в объект [N, 3]Tensor.

Краткое описание

SparseTensor должен иметь ранг R больше 1, а первое измерение рассматривается как измерение мини-пакета. Элементы SparseTensor должны быть отсортированы по возрастанию первого измерения. Сериализованные объекты SparseTensor, передаваемые в каждую строку serialized_sparse, будут иметь ранг R-1.

Размер мини-пакета N извлекается из sparse_shape[0].

Аргументы:

  • scope: объект Scope
  • sparse_indices: двумерный массив. indices мини-пакета SparseTensor.
  • sparse_values: одномерный массив. values мини-пакета SparseTensor.
  • sparse_shape: одномерный массив. shape мини-пакета SparseTensor.

Необязательные атрибуты (см. Attrs):

  • out_type: тип dtype, используемый для сериализации; поддерживаются типы string (по умолчанию) и variant.

Возвращает:

  • Output: тензор serialized_sparse.
Конструкторы и деструкторы
SerializeManySparse(const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape)
SerializeManySparse(const ::tensorflow::Scope & scope, ::tensorflow::Input sparse_indices, ::tensorflow::Input sparse_values, ::tensorflow::Input sparse_shape, const SerializeManySparse::Attrs & attrs)
Открытые атрибуты
operation
Operation
serialized_sparse
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
OutType(DataType x)
Attrs
Структуры
tensorflow::ops::SerializeManySparse::Attrs

Методы установки необязательных атрибутов для SerializeManySparse.

Открытые атрибуты

operation

Operation operation

serialized_sparse

::tensorflow::Output serialized_sparse

Открытые функции

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape
)

SerializeManySparse

 SerializeManySparse(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input sparse_indices,
  ::tensorflow::Input sparse_values,
  ::tensorflow::Input sparse_shape,
  const SerializeManySparse::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-many-sparse

Spec-Zone.ru

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