chainerx.repeat

chainerx.repeat(a, repeats, axis=None)

Constructs an array by repeating a given array.

Parameters
  • a (ndarray) – Array to repeat.

  • repeats (int or tuple of ints) – The number of times which each element of a is repeated.

  • axis (int) – The axis along which to repeat values.

Returns

The repeated output array.

Return type

ndarray

Note

During backpropagation, this function propagates the gradient of the output array to the input array a.

See also

numpy.repeat()