chainer.functions.rollaxis

chainer.functions.rollaxis(x, axis, start=0)[source]

Roll the axis backwards to the given position.

This function continues to be supported for backward compatibility, but you should prefer chainer.functions.moveaxis(x, source, destination). See chainer.functions.moveaxis().

Parameters:
  • x (Variable) – Input variable.
  • axis (int) – The axis to roll backwards.
  • start (int) – The place to which the axis is moved.
Returns:

Variable whose axis is rolled.

Return type:

Variable