tensorflow::ops::Any
#include <math_ops.h>
Вычисляет логическое «или» элементов по измерениям тензора.
Краткое описание
Применяет операцию input по измерениям, заданным в axis. Если keep_dims не установлено, ранг тензора уменьшается на 1 для каждого элемента в axis. Если keep_dims установлено, измерения, подвергнутые сокращению, сохраняются с длиной 1.
Аргументы:
- scope: Объект Scope
- input: Тензор для сокращения.
- axis: Измерения для сокращения. Должны находиться в диапазоне
[-rank(input), rank(input)).
Дополнительные атрибуты (см. Attrs):
- keep_dims: Если установлено в true, сохраняются измерения с длиной 1.
Возвращает:
-
Output: Сокращённый тензор.
Псевдонимы:
- ReduceAny
| Конструкторы и деструкторы | |
|---|---|
Any(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis) | |
Any(const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Any::Attrs & attrs) |
| Общедоступные атрибуты | |
|---|---|
operation | |
output | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
| Общедоступные статические функции | |
|---|---|
KeepDims(bool x) | |
| Структуры | |
|---|---|
| tensorflow::ops::Any::Attrs | Дополнительные методы задания атрибутов для Any. |
Общедоступные атрибуты
operation
Operation operation
output
::tensorflow::Output output
Общедоступные функции
Any
Any( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis )
Any
Any( const ::tensorflow::Scope & scope, ::tensorflow::Input input, ::tensorflow::Input axis, const Any::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/any