コード例 #1
0
ファイル: xlogx.py プロジェクト: ALISCIFP/Segmentation
 def grad(self, inputs, grads):
     x, y = inputs
     gz, = grads
     return [gz * scalar.log(y), gz * x / y]
コード例 #2
0
ファイル: xlogx.py プロジェクト: ALISCIFP/Segmentation
 def grad(self, inputs, grads):
     x, = inputs
     gz, = grads
     return [gz * (1 + scalar.log(x))]
コード例 #3
0
 def grad(self, inputs, grads):
     (x, ) = inputs
     (gz, ) = grads
     return [gz * (1 + scalar.log(x))]
コード例 #4
0
 def grad(self, inputs, grads):
     x, y = inputs
     (gz, ) = grads
     return [gz * scalar.log(y), gz * x / y]
コード例 #5
0
 def grad(self, inputs, grads):
     x, = inputs
     gz, = grads
     return [gz * (1 + scalar.log(x))]