parameters: (inputs, axis=-1, repeats=1, **kwargs)
return_statement: return output
docstring: Repeat the input along the given axis.
  
      Parameters
      ----------
      inputs : Tensor
          The input tensor.
      axis : int
          The axis to repeat. Defaults is ``-1`` (Repeat as Scalar).
      repeats : int or Tensor
          The magnitude of repeating.
  
      Returns
      -------
      Tensor
          The output tensor.
docstring_summary: Repeat the input along the given axis.
docstring_tokens: Repeat the input along the given axis .
function: def Repeat(inputs, axis=-1, repeats=1, **kwargs):
      """Repeat the input along the given axis.
  
      Parameters
      ----------
      inputs : Tensor
          The input tensor.
      axis : int
          The axis to repeat. Defaults is ``-1`` (Repeat as Scalar).
      repeats : int or Tensor
          The magnitude of repeating.
  
      Returns
      -------
      Tensor
          The output tensor.
  
      """
      CheckInputs(inputs, 1)
      arguments = ParseArguments(locals())
      arguments = AddArgumentWithDesc(arguments, repeats, 'repeats', as_target=True)
  
      output = Tensor.CreateOperator(nout=1, op_type='Repeat', **arguments)
  
      if inputs.shape is not None and \
              not isinstance(repeats, Tensor):
          if axis == -1:
              fake_shape = inputs.shape[:]
              fake_shape = [1 if dim is None else dim for dim in fake_shape]
              total_count = np.prod(fake_shape)
              output.shape = [total_count * repeats]
          else:
              output.shape = inputs.shape[:]
              output.shape[axis] *= repeats
  
      return output
function_tokens: def Repeat ( inputs , axis = - 1 , repeats = 1 , * * kwargs ) : CheckInputs ( inputs , 1 ) arguments = ParseArguments ( locals ( ) ) arguments = AddArgumentWithDesc ( arguments , repeats , 'repeats' , as_target = True ) output = Tensor . CreateOperator ( nout = 1 , op_type = 'Repeat' , * * arguments ) if inputs . shape is not None and not isinstance ( repeats , Tensor ) : if axis == - 1 : fake_shape = inputs . shape [ : ] fake_shape = [ 1 if dim is None else dim for dim in fake_shape ] total_count = np . prod ( fake_shape ) output . shape = [ total_count * repeats ] else : output . shape = inputs . shape [ : ] output . shape [ axis ] *= repeats return output