aliran tensor:: operasi:: Setara

#include <math_ops.h>

Mengembalikan nilai kebenaran (x == y) berdasarkan elemen.

Ringkasan

CATATAN : Equal mendukung penyiaran. Lebih lanjut tentang penyiaran di sini

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])

Argumen:

Pengembalian:

Konstruktor dan Destruktor

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)

Atribut publik

operation
z

Fungsi publik

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

Fungsi statis publik

IncompatibleShapeError (bool x)

Struktur

tensorflow:: ops:: Sama dengan:: Attrs

Penyetel atribut opsional untuk Equal .

Atribut publik

operasi

Operation operation

z

::tensorflow::Output z

Fungsi publik

Setara

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

Setara

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

simpul

::tensorflow::Node * node() const 

operator::tensorflow::Masukan

 operator::tensorflow::Input() const 

operator::tensorflow::Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

BentukTidak Kompatibel

Attrs IncompatibleShapeError(
  bool x
)