جریان تنسور:: عملیات:: برابر

#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:: برابر:: 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 

عملگر::tensorflow::ورودی

 operator::tensorflow::Input() const 

عملگر::tensorflow::خروجی

 operator::tensorflow::Output() const 

توابع استاتیک عمومی

IncompatibleShapeError

Attrs IncompatibleShapeError(
  bool x
)