docstr: ivy.Array instance method variant of ivy.asarray. This method simply
  wraps the function, and so the docstring for ivy.asarray also applies
  to this method with minimal changes.
  
  Parameters
  ----------
  self
      input data, in any form that can be converted to an array. This includes
      lists, lists of tuples, tuples, tuples of tuples, tuples of lists and
      ndarrays.
  copy
      boolean indicating whether or not to copy the input array.
      If True, the function must always copy.
      If False, the function must never copy and must
      raise a ValueError in case a copy would be necessary.
      If None, the function must reuse existing memory buffer if possible
      and copy otherwise. Default: ``None``.
  dtype
      datatype, optional. Datatype is inferred from the input data.
  device
      device on which to place the created array. Default: ``None``.
  out
      optional output array, for writing the result to. It must have a shape that
      the inputs broadcast to.
  
  Returns
  -------
  ret
      An array interpretation of ``self``.
  
  Examples
  --------
  With list of lists as input:
  
  >>> ivy.asarray([[1,2],[3,4]])
  ivy.array([[1, 2],
         [3, 4]])
  
  With tuple of lists as input:
  
  >>> ivy.asarray(([1.4,5.6,5.5],[3.1,9.1,7.5]))
  ivy.array([[1.39999998, 5.5999999 , 5.5       ],
         [3.0999999 , 9.10000038, 7.5       ]])
  
  With ndarray as input:
  
  >>> x = ivy.np.ndarray(shape=(2,2), order='C')
  >>> x
  array([[6.90786433e-310, 6.90786433e-310],
         [6.90786433e-310, 6.90786433e-310]])
  >>> ivy.asarray(x)
  ivy.array([[6.90786433e-310, 6.90786433e-310],
         [6.90786433e-310, 6.90786433e-310]])
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.asarray",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.asarray","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","data",",","in","any","form","that","can","be","converted","to","an","array",".","This","includes","lists",",","lists","of","tuples",",","tuples",",","tuples","of","tuples",",","tuples","of","lists","and","ndarrays",".","copy","boolean","indicating","whether","or","not","to","copy","the","input","array",".","If","True",",","the","function","must","always","copy",".","If","False",",","the","function","must","never","copy","and","must","raise","a","ValueError","in","case","a","copy","would","be","necessary",".","If","None",",","the","function","must","reuse","existing","memory","buffer","if","possible","and","copy","otherwise",".","Default",":","``","None","``",".","dtype","datatype",",","optional",".","Datatype","is","inferred","from","the","input","data",".","device","device","on","which","to","place","the","created","array",".","Default",":","``","None","``",".","out","optional","output","array",",","for","writing","the","result","to",".","It","must","have","a","shape","that","the","inputs","broadcast","to",".","Returns","--","--","--","-","ret","An","array","interpretation","of","``","self","``",".","Examples","--","--","--","--","With","list","of","lists","as","input",":",">",">",">","ivy.asarray","(","[","[","1,2","]",",","[","3,4","]","]",")","ivy.array","(","[","[","1",",","2","]",",","[","3",",","4","]","]",")","With","tuple","of","lists","as","input",":",">",">",">","ivy.asarray","(","(","[","1.4,5.6,5.5","]",",","[","3.1,9.1,7.5","]",")",")","ivy.array","(","[","[","1.39999998",",","5.5999999",",","5.5","]",",","[","3.0999999",",","9.10000038",",","7.5","]","]",")","With","ndarray","as","input",":",">",">",">","x","=","ivy.np.ndarray","(","shape=","(","2,2",")",",","order=","'","C","'",")",">",">",">","x","array","(","[","[","6.90786433e-310",",","6.90786433e-310","]",",","[","6.90786433e-310",",","6.90786433e-310","]","]",")",">",">",">","ivy.asarray","(","x",")","ivy.array","(","[","[","6.90786433e-310",",","6.90786433e-310","]",",","[","6.90786433e-310",",","6.90786433e-310","]","]",")"]
code: def asarray(
      self: ivy.Array,
      /,
      *,
      copy: Optional[bool] = None,
      dtype: Optional[Union[ivy.Dtype, ivy.NativeDtype]] = None,
      device: Optional[Union[ivy.Device, ivy.NativeDevice]] = None,
      out: Optional[ivy.Array] = None,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.asarray. This method simply
      wraps the function, and so the docstring for ivy.asarray also applies
      to this method with minimal changes.
  
      Parameters
      ----------
      self
          input data, in any form that can be converted to an array. This includes
          lists, lists of tuples, tuples, tuples of tuples, tuples of lists and
          ndarrays.
      copy
          boolean indicating whether or not to copy the input array.
          If True, the function must always copy.
          If False, the function must never copy and must
          raise a ValueError in case a copy would be necessary.
          If None, the function must reuse existing memory buffer if possible
          and copy otherwise. Default: ``None``.
      dtype
          datatype, optional. Datatype is inferred from the input data.
      device
          device on which to place the created array. Default: ``None``.
      out
          optional output array, for writing the result to. It must have a shape that
          the inputs broadcast to.
  
      Returns
      -------
      ret
          An array interpretation of ``self``.
  
      Examples
      --------
      With list of lists as input:
  
      >>> ivy.asarray([[1,2],[3,4]])
      ivy.array([[1, 2],
             [3, 4]])
  
      With tuple of lists as input:
  
      >>> ivy.asarray(([1.4,5.6,5.5],[3.1,9.1,7.5]))
      ivy.array([[1.39999998, 5.5999999 , 5.5       ],
             [3.0999999 , 9.10000038, 7.5       ]])
  
      With ndarray as input:
  
      >>> x = ivy.np.ndarray(shape=(2,2), order='C')
      >>> x
      array([[6.90786433e-310, 6.90786433e-310],
             [6.90786433e-310, 6.90786433e-310]])
      >>> ivy.asarray(x)
      ivy.array([[6.90786433e-310, 6.90786433e-310],
             [6.90786433e-310, 6.90786433e-310]])
      """
      return ivy.asarray(
          self._data, copy=copy, dtype=dtype, device=device, out=out
      )
  
file_path: ivy/ivy/data_classes/array/creation.py
imports: import abc
  from numbers import Number
  from typing import Optional, Union, List
  import ivy
label_desc: Use image node_id 1 for calling the _ArrayWithCreation obj's underlying member method code with example usage: obj.asarray() and returns: ivy