tensorflow:: ops:: ScatterMin

#include <state_ops.h>

Redukuje rzadkie aktualizacje do odniesienia do zmiennej przy użyciu operacji min .

Streszczenie

Ta operacja oblicza

# Scalar indices
ref[indices, ...] = min(ref[indices, ...], updates[...])

# Vector indices (for each i)
ref[indices[i], ...] = min(ref[indices[i], ...], updates[i, ...])

# High rank indices (for each i, ..., j)
ref[indices[i, ..., j], ...] = min(ref[indices[i, ..., j], ...], updates[i, ..., j, ...])

Ta operacja generuje ref po zakończeniu aktualizacji. Ułatwia to łączenie operacji wymagających użycia wartości resetującej.

Duplikaty wpisów są obsługiwane poprawnie: jeśli wiele indices odwołuje się do tej samej lokalizacji, ich wkłady są łączone.

Wymagane są updates.shape = indices.shape + ref.shape[1:] lub updates.shape = [] .

Argumenty:

  • zakres: obiekt zakresu
  • ref: Powinno pochodzić z węzła Variable .
  • indeksy: Tensor indeksów w pierwszym wymiarze ref .
  • aktualizacje: Tensor zaktualizowanych wartości, który ma zostać zredukowany do ref .

Atrybuty opcjonalne (patrz Attrs ):

  • use_locking: Jeśli wartość True, aktualizacja będzie chroniona blokadą; w przeciwnym razie zachowanie jest niezdefiniowane, ale może wykazywać mniej konfliktów.

Zwroty:

  • Output : = To samo co ref . Zwracane dla wygody operacji, które chcą użyć zaktualizowanych wartości po zakończeniu aktualizacji.

Konstruktory i destruktory

ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates)
ScatterMin (const :: tensorflow::Scope & scope, :: tensorflow::Input ref, :: tensorflow::Input indices, :: tensorflow::Input updates, const ScatterMin::Attrs & attrs)

Atrybuty publiczne

operation
output_ref

Funkcje publiczne

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

Publiczne funkcje statyczne

UseLocking (bool x)

Struktury

tensorflow:: ops:: ScatterMin:: Attrs

Opcjonalne settery atrybutów dla ScatterMin .

Atrybuty publiczne

działanie

Operation operation

odniesienie_wyjściowe

::tensorflow::Output output_ref

Funkcje publiczne

ScatterMin

 ScatterMin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates
)

ScatterMin

 ScatterMin(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input ref,
  ::tensorflow::Input indices,
  ::tensorflow::Input updates,
  const ScatterMin::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

Użyj blokady

Attrs UseLocking(
  bool x
)