dòng chảy :: hoạt động :: Công bằng

#include <math_ops.h>

Trả về giá trị chân lý của (x == y) phần tử khôn ngoan.

Tóm lược

LƯU Ý : Equal hỗ trợ phát sóng. Thông tin thêm về phát sóng tại đây

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

Tranh luận:

Lợi nhuận:

Người xây dựng và Người phá hủy

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)

Thuộc tính công khai

operation
z

Chức năng công cộng

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

Các chức năng tĩnh công khai

IncompatibleShapeError (bool x)

Cấu trúc

tensorflow :: ops :: Equal :: Attrs

Bộ thiết lập thuộc tính tùy chọn cho Bằng .

Thuộc tính công khai

hoạt động

Operation operation

z

::tensorflow::Output z

Chức năng công cộng

Công bằng

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

Công bằng

 Equal(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input x,
  ::tensorflow::Input y,
  const Equal::Attrs & attrs
)

nút

::tensorflow::Node * node() const 

toán tử :: tensorflow :: Đầu vào

 operator::tensorflow::Input() const 

toán tử :: tensorflow :: Đầu ra

 operator::tensorflow::Output() const 

Các chức năng tĩnh công khai

Không tương thíchShapeError

Attrs IncompatibleShapeError(
  bool x
)