(rontolisp) docs
← 関数

torch:neg

(torch:neg a)

微分可能な要素ごとの符号反転 (linalg:negative) です。勾配は逆伝播時に符号が反転します。