class Chainer::Functions::Math::Sub
Public Instance Methods
backward(indexes, gy)
click to toggle source
# File lib/chainer/functions/math/basic_math.rb, line 51 def backward(indexes, gy) [gy[0], -gy[0]] end
forward(x)
click to toggle source
# File lib/chainer/functions/math/basic_math.rb, line 47 def forward(x) [Utils::Array.force_array(x[0] - x[1])] end
label()
click to toggle source
# File lib/chainer/functions/math/basic_math.rb, line 43 def label '_ - _' end