tensorflow:: ops:: SparseSegmentMean
#include <math_ops.h>Oblicza średnią wzdłuż rzadkich segmentów tensora.
Streszczenie
Przykłady użycia można znaleźć tf.sparse.segment_sum .
Podobnie jak SegmentMean , ale segment_ids może mieć rangę niższą niż pierwszy wymiar data , wybierając podzbiór wymiaru 0, określony przez indices .
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ć.
Zwroty:
-
Output: Ma taki sam kształt jak dane, z wyjątkiem wymiaru 0, którego rozmiar wynosik, czyli liczby segmentów.
Konstruktory i destruktory | |
|---|---|
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
działanie
Operation operation
wyjście
::tensorflow::Output output
Funkcje publiczne
Średnia rzadkiego segmentu
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