tensorflow::ops::Sign

#include <math_ops.h>

Trả về thông tin về dấu của từng phần tử trong một số.

Bản tóm tắt

y = sign(x) = -1 nếu x < 0 ; 0 nếu x == 0 ; 1 nếu x > 0 .

Đối với số phức, y = sign(x) = x / |x| nếu x != 0 , ngược lại y = 0 .

Luận điểm:

Trả về:

Hàm khởi tạo và hàm hủy

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

Thuộc tính công khai

operation
y

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

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

Thuộc tính công khai

hoạt động

Operation operation

y

::tensorflow::Output y

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

Dấu hiệu

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

nút

::tensorflow::Node * node() const 

operator::tensorflow::Input

 operator::tensorflow::Input() const 

operator::tensorflow::Output

 operator::tensorflow::Output() const