tensorflow::ops::SparseSegmentSqrtNWithNumSegments
#include <math_ops.h>
Вычисляет сумму по разреженным сегментам тензора, делённую на корень квадратный из N.
Краткое описание
N — размер сегмента, который уменьшается.
Подобно SparseSegmentSqrtN, но допускает пропущенные идентификаторы в segment_ids. Если идентификатор отсутствует, соответствующий элемент в тензоре output будет нулевым.
См. раздел по сегментации для объяснения сегментов.
Аргументы:
- scope: Объект Scope
- indices: Тензор размерности 1. Имеет ту же размерность, что и
segment_ids. - segment_ids: Тензор размерности 1. Значения должны быть отсортированы и могут повторяться.
- num_segments: Должно быть равно количеству уникальных идентификаторов сегментов.
Возвращает:
-
Output: Имеет ту же форму, что и данные, за исключением измерения 0, которое имеет размерk, количество сегментов.
| Конструкторы и деструкторы | |
|---|---|
SparseSegmentSqrtNWithNumSegments(const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Общедоступные атрибуты
операция
Operation operation
выход
::tensorflow::Output output
Общедоступные функции
SparseSegmentSqrtNWithNumSegments
SparseSegmentSqrtNWithNumSegments( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments )
узел
::tensorflow::Node * node() const
оператор::tensorflow::Input
operator::tensorflow::Input() const
оператор::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/sparse-segment-sqrt-n-with-num-segments