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]

議論:

返品:

コンストラクターとデストラクタ

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

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

ノード

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const