Method: Chainer::Functions::Array::Reshape#backward

Defined in:
lib/chainer/functions/array/reshape.rb

#backward(indexes, grad_outputs) ⇒ Object



21
22
23
24
# File 'lib/chainer/functions/array/reshape.rb', line 21

def backward(indexes, grad_outputs)
  gx = grad_outputs.first
  [Reshape.reshape(gx, @inputs.first.shape)]
end