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 | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
KeepDims(bool x) | |
| Структуры | |
|---|---|
| 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 )
© 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/mean