tensorflow:: אופס:: שווה

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

טיעונים:

  • scope: אובייקט Scope

החזרות:

בנאים והורסים

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

ז

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