tensorflow::ops::Equal
#include <math_ops.h>Trả về giá trị chân lý của (x == y) theo từng phần tử.
Bản tóm tắt
LƯU Ý : Equal hỗ trợ phát thanh truyền hình. Tìm hiểu thêm về phát thanh truyền hình 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])
Luận điểm:
- phạm vi: Một đối tượng Phạm vi
Trả về:
-
Output: Tensor z.
Hàm khởi 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 | |
|---|---|
| tensorflow::ops::Equal::Attrs | Các 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
operator::tensorflow::Input
operator::tensorflow::Input() const
operator::tensorflow::Output
operator::tensorflow::Output() const
Các hàm tĩnh công khai
Lỗi hình dạng không tương thích
Attrs IncompatibleShapeError( bool x )