tensorflow::ops::Gather

#include <array_ops.h>

Соберите фрагменты params в соответствии с indices .

Краткое содержание

indices должен быть целочисленным тензором любой размерности (обычно 0-мерным или 1-мерным). Выводит тензор с формой indices.shape + params.shape[1:] , где:

    # Scalar indices
    output[:, ..., :] = params[indices, :, ... :]

    # Vector indices
    output[i, :, ..., :] = params[indices[i], :, ... :]

    # Higher rank indices
    output[i, ..., j, :, ... :] = params[indices[i, ..., j], :, ..., :]

Если indices — это перестановка, и len(indices) == params.shape[0] , то эта операция переставит params соответствующим образом.

validate_indices : УСТАРЕЛО. Если эта операция назначена ЦП, значения indices всегда проверяются на соответствие допустимому диапазону. Если она назначена графическому процессору, выход индексов за пределы допустимого диапазона приводит к безопасному, но неопределенному поведению, которое может включать в себя генерацию ошибки.

Аргументы:

  • scope: Объект Scope

Возвращает:

  • Output : выходной тензор.

Конструкторы и Деструкторы

Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices)
Gather (const :: tensorflow::Scope & scope, :: tensorflow::Input params, :: tensorflow::Input indices, const Gather::Attrs & attrs)

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

operation
output

Общественные функции

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

Открытые статические функции

ValidateIndices (bool x)

Структуры

tensorflow::ops::Gather::Attrs

Дополнительные параметры установки атрибутов для функции Gather .

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

операция

Operation operation

выход

::tensorflow::Output output

Общественные функции

Собирать

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices
)

Собирать

 Gather(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input params,
  ::tensorflow::Input indices,
  const Gather::Attrs & attrs
)

узел

::tensorflow::Node * node() const 

оператор::tensorflow::Input

 operator::tensorflow::Input() const 

оператор::tensorflow::Output

 operator::tensorflow::Output() const 

Открытые статические функции

ValidateIndices

Attrs ValidateIndices(
  bool x
)