Spec-Zone.ru › TensorFlow C++

tensorflow::ops::TensorArrayConcat

#include <data_flow_ops.h>

Concat элементы из TensorArray в значение value.

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

Принимает T элементы с формами

(n0 x d0 x d1 x ...), (n1 x d0 x d1 x ...), ..., (n(T-1) x d0 x d1 x ...)

и конкатенирует их в Tensor с формой:

(n0 + n1 + ... + n(T-1) x d0 x d1 x ...)

Все элементы должны иметь одинаковую форму (кроме первого измерения).

Args:

  • scope: Объект Scope
  • handle: Указатель на TensorArray.
  • flow_in: Вещественный скаляр, обеспечивающий корректную цепочку операций.
  • dtype: Тип возвращаемого элемента.

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

  • element_shape_except0: Ожидаемая форма элемента, если известна, за исключением первого измерения. Используется для проверки форм элементов TensorArray. Если эта форма не полностью определена, конкатенация нулевых TensorArray является ошибкой.

Returns:

  • Output value: Все элементы в TensorArray, конкатенированные по первой оси.
  • Output lengths: Вектор размеров строк исходных элементов T в выходном значении. В примере выше это значения: (n1, n2, ..., n(T-1)).
Конструкторы и деструкторы
TensorArrayConcat(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype)
TensorArrayConcat(const ::tensorflow::Scope & scope, ::tensorflow::Input handle, ::tensorflow::Input flow_in, DataType dtype, const TensorArrayConcat::Attrs & attrs)
Общедоступные атрибуты
lengths
::tensorflow::Output
operation
Operation
value
::tensorflow::Output
Общедоступные статические функции
ElementShapeExcept0(PartialTensorShape x)
Attrs
Структуры
tensorflow::ops::TensorArrayConcat::Attrs

Необязательные установщики атрибутов для TensorArrayConcat.

Общедоступные атрибуты

lengths

::tensorflow::Output lengths

operation

Operation operation

value

::tensorflow::Output value

Общедоступные функции

TensorArrayConcat

 TensorArrayConcat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input flow_in,
  DataType dtype
)

TensorArrayConcat

 TensorArrayConcat(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input handle,
  ::tensorflow::Input flow_in,
  DataType dtype,
  const TensorArrayConcat::Attrs & attrs
)

Общедоступные статические функции

ElementShapeExcept0

Attrs ElementShapeExcept0(
  PartialTensorShape 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/tensor-array-concat

Spec-Zone.ru

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