przepływ tensorowy:: ops:: SparseSegmentMeanWithNumSegments

#include <math_ops.h>

Oblicza średnią wzdłuż rzadkich segmentów tensora.

Streszczenie

Podobnie jak SparseSegmentMean , ale pozwala na brak identyfikatorów w segment_ids . Jeśli brakuje identyfikatora, tensor output w tej pozycji zostanie wyzerowany.

Przeczytaj sekcję dotyczącą segmentacji , aby uzyskać wyjaśnienie segmentów.

Argumenty:

  • zakres: Obiekt Scope
  • indeksy: tensor 1-D. Ma tę samą rangę co segment_ids .
  • segment_ids: Tensor 1-D. Wartości należy posortować i można je powtarzać.
  • num_segments: powinno być równe liczbie odrębnych identyfikatorów segmentów.

Zwroty:

  • Output : mają taki sam kształt jak dane, z wyjątkiem wymiaru 0, który ma rozmiar num_segments .

Konstruktory i destruktory

SparseSegmentMeanWithNumSegments (const :: tensorflow::Scope & scope, :: tensorflow::Input data, :: tensorflow::Input indices, :: tensorflow::Input segment_ids, :: tensorflow::Input num_segments)

Atrybuty publiczne

operation
output

Funkcje publiczne

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

Atrybuty publiczne

operacja

Operation operation

wyjście

::tensorflow::Output output

Funkcje publiczne

SparseSegmentMeanWithNumSegments

 SparseSegmentMeanWithNumSegments(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input data,
  ::tensorflow::Input indices,
  ::tensorflow::Input segment_ids,
  ::tensorflow::Input num_segments
)

węzeł

::tensorflow::Node * node() const 

operator::tensorflow::Wejście

 operator::tensorflow::Input() const 

operator::tensorflow::Wyjście

 operator::tensorflow::Output() const