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. Theaxisparameter is used to specify the axis along which values are repeated. By default, a flattened version ofxis used.The number of repetitions for each element is
repeats.repeatsis 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,