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

ข้อโต้แย้ง:

การส่งคืนสินค้า:

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

คุณลักษณะสาธารณะ

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() const 

ตัวดำเนินการ::เทนเซอร์โฟลว์::เอาต์พุต

 operator::tensorflow::Output() const 

ฟังก์ชันคงที่สาธารณะ

ข้อผิดพลาดรูปร่างไม่เข้ากัน

Attrs IncompatibleShapeError(
  bool x
)