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 givenaxis
. Theaxis
parameter is used to specify the axis along which values are repeated. By default, a flattened version ofx
is used.The number of repetitions for each element is
repeats
.repeats
is broadcasted to fit the length of the givenaxis
.- Parameters:
x – Input data, tensor variable.
repeats – int, scalar or tensor variable
axis (int, optional) –
See also
tensor.tile
,