tensorflow:: ops:: SparseSegmentMeanWithNumSegments

#include <math_ops.h>

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

Streszczenie

Podobnie jak SparseSegmentMean , ale dopuszcza brakujące identyfikatory w segment_ids . Jeśli brakuje identyfikatora, tensor output w tym miejscu zostanie wyzerowany.

Aby uzyskać objaśnienie segmentów, przeczytaj sekcję poświęconą segmentacji .

Argumenty:

  • zakres: obiekt zakresu
  • Indeksy: jednowymiarowy tensor. Ma taką samą rangę jak segment_ids .
  • segment_ids: Tensor jednowymiarowy. Wartości powinny być sortowane i mogą się powtarzać.
  • num_segments: Powinno być równe liczbie odrębnych identyfikatorów segmentów.

Zwroty:

  • Output : Ma taki sam kształt jak dane, z wyjątkiem wymiaru 0, którego rozmiar wynosi 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

działanie

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::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const