tensorflow::ops::SparseSegmentMeanWithNumSegments
#include <math_ops.h>
Вычисляет среднее значение по разреженным сегментам тензора.
Summary
Подобно SparseSegmentMean, но допускает пропущенные идентификаторы в segment_ids. Если идентификатор отсутствует, соответствующий элемент тензора output будет обнулен.
См. раздел о сегментации для объяснения сегментов.
Args:
- scope: Объект Scope
- indices: 1-мерный тензор. Имеет такой же ранг, как
segment_ids. - segment_ids: 1-мерный тензор. Значения должны быть отсортированы и могут повторяться.
- num_segments: Должно быть равно количеству уникальных идентификаторов сегментов.
Returns:
-
Output: Имеет такую же форму, как данные, за исключением измерения 0, размер которогоnum_segments.
| Конструкторы и деструкторы | |
|---|---|
SparseSegmentMeanWithNumSegments(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 operation
output
::tensorflow::Output output
Общедоступные функции
SparseSegmentMeanWithNumSegments
SparseSegmentMeanWithNumSegments( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids, ::tensorflow::Input num_segments )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2022 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.9/api_docs/cc/class/tensorflow/ops/sparse-segment-mean-with-num-segments