parameters: (shape, fill_value, dtype=None)
return_statement: return _convert_64_to_32(empty_compile(dtype, shape))
docstring: Returns a new tensor of given shape and type, filled with `fill_value`.
  
      Args:
          shape (Union[int, tuple(int), list(int)]): Shape of the new tensor, e.g.,
              :math:`(2, 3)` or :math:`2`.
          fill_value (Union[int, float, bool, list, tuple]): Scalar or array_like
              fill value.
          dtype (Union[:class:`mindspore.dtype`, str], optional): Designated tensor dtype,
              if `dtype` is :class:`None`, the data type of the new tensor will be inferred from
              `fill_value`. Default is :class:`None`.
  
      Returns:
          Tensor, with the designated shape and dtype, filled with `fill_value`.
  
      Raises:
          TypeError: If input arguments have types not specified above.
          ValueError: If `shape` has entries < 0.
  
      Supported Platforms:
          ``Ascend`` ``GPU`` ``CPU``
  
      Examples:
          >>> import mindspore.numpy as np
          >>> print(np.full((2,2), True))
          [[True True]
          [True True]]
docstring_summary: Returns a new tensor of given shape and type, filled with `fill_value`.
docstring_tokens: Returns a new tensor of given shape and type filled with fill_value .
function: def full(shape, fill_value, dtype=None):
      """
      Returns a new tensor of given shape and type, filled with `fill_value`.
  
      Args:
          shape (Union[int, tuple(int), list(int)]): Shape of the new tensor, e.g.,
              :math:`(2, 3)` or :math:`2`.
          fill_value (Union[int, float, bool, list, tuple]): Scalar or array_like
              fill value.
          dtype (Union[:class:`mindspore.dtype`, str], optional): Designated tensor dtype,
              if `dtype` is :class:`None`, the data type of the new tensor will be inferred from
              `fill_value`. Default is :class:`None`.
  
      Returns:
          Tensor, with the designated shape and dtype, filled with `fill_value`.
  
      Raises:
          TypeError: If input arguments have types not specified above.
          ValueError: If `shape` has entries < 0.
  
      Supported Platforms:
          ``Ascend`` ``GPU`` ``CPU``
  
      Examples:
          >>> import mindspore.numpy as np
          >>> print(np.full((2,2), True))
          [[True True]
          [True True]]
      """
      shape = _check_shape(shape)
      if not isinstance(fill_value, ARRAY_TYPES):
          _raise_type_error("fill value should be int, float, bool, list, tuple, Tensor, but got", fill_value)
      if dtype is not None:
          dtype = _check_dtype(dtype)
      else:
          if isinstance(fill_value, (int, float, bool)):
              dtype = _get_dtype_from_scalar(fill_value)
          if isinstance(fill_value, Tensor):
              dtype = fill_value.dtype
  
      if not _is_shape_empty(shape):
          if isinstance(fill_value, (int, float, bool)):
              return F.fill(dtype, shape, fill_value)
          if isinstance(fill_value, (list, tuple)):
              fill_value = asarray_const(fill_value)
          return broadcast_to(fill_value, shape)
      # if shape contains zero, use c.Tensor()
      return _convert_64_to_32(empty_compile(dtype, shape))
function_tokens: def full ( shape , fill_value , dtype = None ) : shape = _check_shape ( shape ) if not isinstance ( fill_value , ARRAY_TYPES ) : _raise_type_error ( "fill value should be int, float, bool, list, tuple, Tensor, but got" , fill_value ) if dtype is not None : dtype = _check_dtype ( dtype ) else : if isinstance ( fill_value , ( int , float , bool ) ) : dtype = _get_dtype_from_scalar ( fill_value ) if isinstance ( fill_value , Tensor ) : dtype = fill_value . dtype if not _is_shape_empty ( shape ) : if isinstance ( fill_value , ( int , float , bool ) ) : return F . fill ( dtype , shape , fill_value ) if isinstance ( fill_value , ( list , tuple ) ) : fill_value = asarray_const ( fill_value ) return broadcast_to ( fill_value , shape ) # if shape contains zero, use c.Tensor() return _convert_64_to_32 ( empty_compile ( dtype , shape ) )