Variable and Parameter

Variable classes and utilities

chainer.Variable Array with a structure to keep track of computation.
chainer.as_variable Converts an array or a variable into Variable.
chainer.Parameter Parameter variable that can be registered to a link.
chainer.variable.VariableNode Node in the backward computational graph representing a variable.

N-dimensional array

chainer.Variable holds its value as an n-dimensional array (ndarray). Chainer supports the following classes:


Python scalars (float, etc.) and NumPy scalars (numpy.float16, numpy.float32, etc.) cannot be used as chainer.Variable.array. See also chainer.utils.force_array().