class_docstr: Repeat elements of an array.
class_docstr_tok: ["Repeat","elements","of","an","array","."]
code: def forward(self, inputs):
      self.retain_inputs((0,))
      (x,) = inputs
      xp = backend.get_array_module(x)
      repeats = self.repeats
  
      # Workaround for bug in NumPy 1.9 that specifying one element list to
      # `repeats` fails to broadcast.
      if len(repeats) == 1:
          repeats = repeats[0]
  
      return (xp.repeat(x, repeats, self.axis),)
  
file_path: chainer/chainer/functions/array/repeat.py
imports: import six
  from chainer import backend
  from chainer import function_node
  from chainer import utils
  from chainer.utils import type_check
label_desc: Use image node_id 3 for calling the Repeat obj's underlying member method code with example usage: obj.forward(inputs) and returns: xp