tensorflow::ops::Greater
#include <math_ops.h>
Возвращает логическое значение (x > y) поэлементно.
Summary
ПРИМЕЧАНИЕ: Greater поддерживает вещание. Подробнее о вещании здесь.
Пример:
x = tf.constant([5, 4, 6]) y = tf.constant([5, 2, 5]) tf.math.greater(x, y) ==> [False, True, True]
x = tf.constant([5, 4, 6]) y = tf.constant([5]) tf.math.greater(x, y) ==> [False, False, True]
Аргументы:
- scope: Объект Scope
Возвращает:
-
Output: Тензор z.
| Конструкторы и деструкторы | |
|---|---|
Greater(const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y) |
| Общедоступные атрибуты | |
|---|---|
operation | |
z | |
| Общедоступные функции | |
|---|---|
node() const | ::tensorflow::Node * |
operator::tensorflow::Input() const | |
operator::tensorflow::Output() const | |
Общедоступные атрибуты
operation
Operation operation
z
::tensorflow::Output z
Общедоступные функции
Greater
Greater( const ::tensorflow::Scope & scope, ::tensorflow::Input x, ::tensorflow::Input y )
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 4.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/versions/r2.4/api_docs/cc/class/tensorflow/ops/greater