aesara.tensor.repeat

Contents

aesara.tensor.repeat#

aesara.tensor.repeat(x, repeats, axis=None)[source]#

Repeat elements of an array.

It returns an array which has the same shape as x, except along the given axis. The axis parameter is used to specify the axis along which values are repeated. By default, a flattened version of x is used.

The number of repetitions for each element is repeats. repeats is broadcasted to fit the length of the given axis.

Parameters:
  • x – Input data, tensor variable.

  • repeats – int, scalar or tensor variable

  • axis (int, optional) –

See also

tensor.tile,