Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SerializeSparse

#include <sparse_ops.h>

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

Сводка

Аргументы:

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

Необязательные атрибуты (см. 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
Operation
serialized_sparse
::tensorflow::Output
Открытые функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Открытые статические функции
OutType(DataType x)
Attrs
Структуры
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

Spec-Zone.ru

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