Spec-Zone.ru › TensorFlow C++

tensorflow::ops::SparseSegmentMean

#include <math_ops.h>

Вычисляет среднее значение по разреженным сегментам тензора.

Краткое описание

Примеры использования см. в tf.sparse.segment_sum.

Как и SegmentMean, но segment_ids может иметь ранг меньше, чем первое измерение data, выбирая подмножество измерения 0, заданное indices.

Аргументы:

  • scope: объект Scope
  • indices: одномерный тензор. Имеет тот же ранг, что и segment_ids.
  • segment_ids: одномерный тензор. Значения должны быть отсортированы; допускаются повторы.

Возвращает:

  • Output: имеет ту же форму, что и data, за исключением измерения 0, размер которого равен k — количеству сегментов.
Конструкторы и деструкторы
SparseSegmentMean(const ::tensorflow::Scope & scope, ::tensorflow::Input data, ::tensorflow::Input indices, ::tensorflow::Input segment_ids)
Открытые атрибуты
operation
Operation
output
::tensorflow::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 

© 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/api_docs/cc/class/tensorflow/ops/sparse-segment-mean

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API