如果x <0,則y = sign(x)= -1;如果x == 0,則為0;如果x> 0,則為1。 對於複數,y =符號(x)= x /| x |如果x!= 0,否則y = 0。 用法:tensorflow.math.sign(x, name).
確定! 回上一頁