tensorflow::ops::SparseSegmentMean
#include <math_ops.h>
Вычисляет среднее значение по разреженным сегментам тензора.
Summary
Примеры использования см. в tf.sparse.segment_sum.
Подобно SegmentMean, но segment_ids может иметь ранг меньше, чем у data на первом измерении, выбирая подмножество нулевого измерения, указанного indices.
Аргументы:
- scope: Объект Scope
- indices: 1-мерный тензор. Имеет тот же ранг, что и
segment_ids. - segment_ids: 1-мерный тензор. Значения должны быть отсортированы и могут повторяться.
Возвращает:
-
Output: Имеет такую же форму, как и данные, за исключением нулевого измерения, размер которого равенk, числу сегментов.
| Конструкторы и деструкторы | |
|---|---|
SparseSegmentMean(const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids) |
| Открытые атрибуты | |
|---|---|
operation | |
output | |
| Открытые функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Открытые атрибуты
operation
Operation operation
output
::tensorflow::Output output
Открытые функции
SparseSegmentMean
SparseSegmentMean( const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids )
node
::tensorflow::Node * node() const
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
© 2020 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r1.15/api_docs/cc/class/tensorflow/ops/sparse-segment-mean