tensorflow:: ops:: SparseSegmentSqrtNWithNumSegments
#include <math_ops.h>Oblicza sumę wzdłuż rzadkich segmentów tensora podzieloną przez pierwiastek kwadratowy z N.
Streszczenie
N to rozmiar segmentu podlegającego redukcji.
Podobnie jak SparseSegmentSqrtN , 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 wynosik, czyli liczby segmentów.
Konstruktory i destruktory | |
|---|---|
SparseSegmentSqrtNWithNumSegments (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
SparseSegmentSqrtNWithNumSegments
SparseSegmentSqrtNWithNumSegments( 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