tensorflow:: ops:: Zbierz

#include <array_ops.h>

Zbierz wycinki z params zgodnie z indices .

Streszczenie

indices muszą być tensorami całkowitymi o dowolnym wymiarze (zwykle 0-D lub 1-D). Generuje tensor wyjściowy o kształcie indices.shape + params.shape[1:] , gdzie:

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

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

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

Jeśli indices są permutacją i len(indices) == params.shape[0] wówczas ta operacja odpowiednio permutuje params .

validate_indices : PRZESTARZAŁE. Jeśli ta operacja jest przypisana do procesora, wartości w indices są zawsze weryfikowane pod kątem zgodności z zakresem. Jeśli jest przypisana do procesora graficznego, indeksy poza zakresem powodują bezpieczne, ale nieokreślone zachowanie, które może obejmować zgłoszenie błędu.

Argumenty:

Zwroty:

Konstruktory i destruktory

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)

Atrybuty publiczne

operation
output

Funkcje publiczne

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

Publiczne funkcje statyczne

ValidateIndices (bool x)

Struktury

tensorflow:: ops:: Gather:: Attrs

Opcjonalne ustawienia atrybutów dla Gather .

Atrybuty publiczne

działanie

Operation operation

wyjście

::tensorflow::Output output

Funkcje publiczne

Zebrać

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

Zebrać

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

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

Publiczne funkcje statyczne

Walidacja indeksów

Attrs ValidateIndices(
  bool x
)