Spec-Zone.ru › TensorFlow C++ 2.4

tensorflow::ops::Mean

#include <math_ops.h>

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

Сводка

Вычисляет input по измерениям, указанным в axis. Если keep_dims не равно true, ранг тензора уменьшается на 1 для каждого элемента в axis. Если keep_dims равно true, уменьшенные измерения сохраняются с длиной 1.

Аргументы:

  • scope: Объект Scope
  • input: Тензор для вычисления.
  • axis: Измерения для вычисления. Должны быть в диапазоне [-rank(input), rank(input)).

Необязательные атрибуты (см. Attrs):

  • keep_dims: Если true, сохраняет уменьшенные измерения длиной 1.

Возвращает:

  • Output: Результирующий тензор.

Псевдонимы:

  • ReduceMean
Конструкторы и деструкторы
Mean(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis)
Mean(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Mean::Attrs & attrs)
Публичные атрибуты
operation
Operation
output
::tensorflow::Output
Публичные функции
node() const
::tensorflow::Node *
operator::tensorflow::Input() const
operator::tensorflow::Output() const
Публичные статические функции
KeepDims(bool x)
Attrs
Структуры
tensorflow::ops::Mean::Attrs

Необязательные настройки атрибутов для Mean.

Публичные атрибуты

operation

Operation operation

output

::tensorflow::Output output

Публичные функции

Mean

 Mean(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis
)

Mean

 Mean(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input input,
  ::tensorflow::Input axis,
  const Mean::Attrs & attrs
)

node

::tensorflow::Node * node() const 

operator::tensorflow::Input

operator::tensorflow::Input() const 

operator::tensorflow::Output

operator::tensorflow::Output() const 

Публичные статические функции

KeepDims

Attrs KeepDims(
  bool x
)

© 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/mean

Spec-Zone.ru

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