Halaman ini diterjemahkan oleh Cloud Translation API.
Switch to English

tensorflow :: ops :: Sama

#include <math_ops.h>

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

Ringkasan

CATATAN : Equal mendukung penyiaran. Selengkapnya 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:

Pembuat dan Penghancur

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)

Structs

tensorflow :: ops :: Equal :: Attrs

Penyetel atribut opsional untuk Equal .

Atribut publik

operasi

Operation operation

z

::tensorflow::Output z

Fungsi publik

Sama

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

Sama

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

simpul

::tensorflow::Node * node() const 

operator :: tensorflow :: Input

 operator::tensorflow::Input() const 

operator :: tensorflow :: Keluaran

 operator::tensorflow::Output() const 

Fungsi statis publik

IncompatibleShapeError

Attrs IncompatibleShapeError(
  bool x
)