dòng chảy căng:: ôi:: Bình đẳng

#include <math_ops.h>

Trả về giá trị thực của (x == y) theo phần tử.

Bản tóm tắt

LƯU Ý : Equal hỗ trợ phát sóng. Tìm hiểu 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:

Trả về:

Hàm tạo và hàm 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 hàm tĩnh công khai

IncompatibleShapeError (bool x)

Cấu trúc

tenorflow:: ops:: Bằng:: Attrs

Trình thiết lập thuộc tính tùy chọn cho Equal .

Thuộc tính công khai

hoạt động

Operation operation

z

::tensorflow::Output z

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

Bình đẳng

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

Bình đẳ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ử::tenorflow::Đầu vào

 operator::tensorflow::Input() const 

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

 operator::tensorflow::Output() const 

Các hàm tĩnh công khai

Hình dạng không tương thíchLỗi

Attrs IncompatibleShapeError(
  bool x
)