Zadbaj o dobrą organizację dzięki kolekcji Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.

tensorflow :: ops :: SparseSegmentMean

#include <math_ops.h>

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

streszczenie

Przykłady użycia można znaleźć w tf.sparse.segment_sum .

Jak SegmentMean , ale segment_ids może mieć rangę mniej niż data pierwszego wymiaru „s, wybierając podzbiór wymiarze 0, określonego przez indices .

Argumenty:

  • zakres: obiekt Scope
  • indeksy: tensor 1-D. Ma taką samą pozycję jak segment_ids .
  • segment_ids: tensor 1-D. Wartości należy posortować i można je powtórzyć.

Zwroty:

  • Output : ma taki sam kształt jak dane, z wyjątkiem wymiaru 0, który ma rozmiar k , liczbę segmentów.

Konstruktorzy i niszczyciele

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

Atrybuty publiczne

operation
output

Funkcje publiczne

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

Atrybuty publiczne

operacja

Operation operation

wynik

::tensorflow::Output output

Funkcje publiczne

SparseSegmentMean

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

węzeł

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Output

 operator::tensorflow::Output() const