Method: Chainer::Functions::Array::Reshape.reshape
- Defined in:
- lib/chainer/functions/array/reshape.rb
.reshape(x, shape) ⇒ Object
10 11 12 13 |
# File 'lib/chainer/functions/array/reshape.rb', line 10 def self.reshape(x, shape) return Chainer::Variable.as_variable(x) if x.shape == shape return self.new(shape).apply([x]).first end |