เทนเซอร์โฟลว์:: ออปส์:: เกรทเทอร์

#include <math_ops.h>

ส่งคืนค่าความจริงของ (x > y) ทีละองค์ประกอบ

สรุป

หมายเหตุ : Greater รองรับการออกอากาศ ดูข้อมูลเพิ่มเติมเกี่ยวกับการออกอากาศ ได้ที่นี่

ตัวอย่าง:

x = tf.constant([5, 4, 6])
y = tf.constant([5, 2, 5])
tf.math.greater(x, y) ==> [False, True, True]

x = tf.constant([5, 4, 6])
y = tf.constant([5])
tf.math.greater(x, y) ==> [False, False, True]

ข้อโต้แย้ง:

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

  • Output : เทนเซอร์ z

ตัวสร้างและตัวทำลาย

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

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

operation
z

หน้าที่สาธารณะ

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

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

การดำเนินการ

Operation operation

z

::tensorflow::Output z

หน้าที่สาธารณะ

ยิ่งใหญ่กว่า

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

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const