Google I/O에 참여해 주셔서 감사합니다. 주문형 모든 세션 보기 주문형 시청

tensorflow :: ops :: 기호

#include <math_ops.h>

숫자 부호의 요소 별 표시를 반환합니다.

요약

y = sign(x) = -1 if x < 0 ; x == 0 ; x > 0 이면 1입니다.

복소수의 경우 y = sign(x) = x / |x| x != 0 , 그렇지 않으면 y = 0 입니다.

사용 예 : tf.math.sign ([0., 2., -3.])

인수 :

보고:

생성자와 소멸자

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

공용 속성

operation
y

공공 기능

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

공용 속성

조작

Operation operation

와이

::tensorflow::Output y

공공 기능

기호

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

마디

::tensorflow::Node * node() const 

연산자 :: tensorflow :: 입력

 operator::tensorflow::Input() const 

연산자 :: tensorflow :: 출력

 operator::tensorflow::Output() const