tensorflow:: ops:: Equal

#include <math_ops.h>

(x == y) の真偽値を要素ごとに返します。

まとめ

注: Equal放送を支援しています。放送に関する詳細はこちらをご覧ください。

x = tf.constant([2, 4])
y = tf.constant(2)
tf.math.equal(x, y) ==> array([True, False])

x = tf.constant([2, 4])
y = tf.constant([2, 4])
tf.math.equal(x, y) ==> array([True,  True])

議論:

返品:

コンストラクターとデストラクタ

Equal (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y)
Equal (const :: tensorflow::Scope & scope, :: tensorflow::Input x, :: tensorflow::Input y, const Equal::Attrs & attrs)

公開属性

operation
z

公的機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック静的関数

IncompatibleShapeError (bool x)

構造

tensorflow:: ops:: Equal:: Attrs

Equalのオプション属性セッター。

公開属性

手術

Operation operation

z

::tensorflow::Output z

公的機能

等しい

 Equal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y
)

等しい

 Equal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y,
  const Equal::Attrs & attrs
)

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const 

パブリック静的関数

互換性のない形状エラー

Attrs IncompatibleShapeError(
  bool x
)