class Chainer::Functions::Math::Add
Public Instance Methods
backward(indexes, gy)
click to toggle source
# File lib/chainer/functions/math/basic_math.rb, line 23 def backward(indexes, gy) [gy[0], gy[0]] end
forward(x)
click to toggle source
# File lib/chainer/functions/math/basic_math.rb, line 19 def forward(x) [Utils::Array.force_array(x[0] + x[1])] end