tensorflow::ops::IsInf

#include <math_ops.h>

คืนค่าองค์ประกอบใดของ x ที่เป็น Inf

สรุป

(numpy) เทียบเท่ากับ np.isinf

ตัวอย่าง:

x = tf.constant([5.0, np.inf, 6.8, np.inf])
tf.math.is_inf(x) ==> [False, True, False, True]

ข้อโต้แย้ง:

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

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

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

IsInf (const :: tensorflow::Scope & scope, :: tensorflow::Input x)

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

operation
y

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

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

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

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

Operation operation

y

::tensorflow::Output y

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

ไอเอสอินฟ์

 IsInf(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x
)

โหนด

::tensorflow::Node * node() const 

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

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const