docstr: ivy.Array instance method variant of ivy.inplace_update. This method
  simply wraps the function, and so the docstring for ivy.inplace_update
  also applies to this method with minimal changes.
  
  Parameters
  ----------
  self
      input array to update
  val
      The array to update the variable with.
  ensure_in_backend
      Whether to ensure that the `ivy.NativeArray` is also inplace updated.
      In cases where it should be, backends which do not natively support inplace
      updates will raise an exception.
  keep_input_dtype
      Whether or not to preserve `x` data type after the update, otherwise `val`
      data type will be applied. Defaults to False.
  
  Returns
  -------
  ret
      The array following the in-place update.
  
  Examples
  --------
  With :class:`ivy.Array` input and default backend set as `numpy`:
  
  >>> x = ivy.array([1, 2, 3])
  >>> y = ivy.array([0])
  >>> x.inplace_update(y)
  >>> print(x)
  ivy.array([0])
  
  With :class:`ivy.Array` input and default backend set as `numpy`:
  
  >>> x = ivy.array([1, 2, 3], dtype=ivy.float32)
  >>> y = ivy.array([0, 0, 0], dtype=ivy.int32)
  >>> x.inplace_update(y, keep_input_dtype=True)
  >>> print(x)
  ivy.array([0., 0., 0.])
  
  With :class:`ivy.Array` input and default backend set as `torch`:
  
  >>> x = ivy.array([1, 2, 3])
  >>> y = ivy.array([0])
  >>> x.inplace_update(y)
  >>> print(x)
  ivy.array([0])
  
  With :class:`ivy.Array` input and default backend set as `jax`:
  
  >>> x = ivy.array([4, 5, 6])
  >>> y = ivy.array([1])
  >>> x.inplace_update(y)
  IvyBackendException: jax: inplace_update: JAX does not natively
  support inplace updates
docstr_tok: ["ivy.Array","instance","method","variant","of","ivy.inplace_update",".","This","method","simply","wraps","the","function",",","and","so","the","docstring","for","ivy.inplace_update","also","applies","to","this","method","with","minimal","changes",".","Parameters","--","--","--","--","--","self","input","array","to","update","val","The","array","to","update","the","variable","with",".","ensure_in_backend","Whether","to","ensure","that","the","`","ivy.NativeArray","`","is","also","inplace","updated",".","In","cases","where","it","should","be",",","backends","which","do","not","natively","support","inplace","updates","will","raise","an","exception",".","keep_input_dtype","Whether","or","not","to","preserve","`","x","`","data","type","after","the","update",",","otherwise","`","val","`","data","type","will","be","applied",".","Defaults","to","False",".","Returns","--","--","--","-","ret","The","array","following","the","in-place","update",".","Examples","--","--","--","--","With",":","class",":","`","ivy.Array","`","input","and","default","backend","set","as","`","numpy","`",":",">",">",">","x","=","ivy.array","(","[","1",",","2",",","3","]",")",">",">",">","y","=","ivy.array","(","[","0","]",")",">",">",">","x.inplace_update","(","y",")",">",">",">","print","(","x",")","ivy.array","(","[","0","]",")","With",":","class",":","`","ivy.Array","`","input","and","default","backend","set","as","`","numpy","`",":",">",">",">","x","=","ivy.array","(","[","1",",","2",",","3","]",",","dtype=ivy.float32",")",">",">",">","y","=","ivy.array","(","[","0",",","0",",","0","]",",","dtype=ivy.int32",")",">",">",">","x.inplace_update","(","y",",","keep_input_dtype=True",")",">",">",">","print","(","x",")","ivy.array","(","[","0.",",","0.",",","0",".","]",")","With",":","class",":","`","ivy.Array","`","input","and","default","backend","set","as","`","torch","`",":",">",">",">","x","=","ivy.array","(","[","1",",","2",",","3","]",")",">",">",">","y","=","ivy.array","(","[","0","]",")",">",">",">","x.inplace_update","(","y",")",">",">",">","print","(","x",")","ivy.array","(","[","0","]",")","With",":","class",":","`","ivy.Array","`","input","and","default","backend","set","as","`","jax","`",":",">",">",">","x","=","ivy.array","(","[","4",",","5",",","6","]",")",">",">",">","y","=","ivy.array","(","[","1","]",")",">",">",">","x.inplace_update","(","y",")","IvyBackendException",":","jax",":","inplace_update",":","JAX","does","not","natively","support","inplace","updates"]
code: def inplace_update(
      self: ivy.Array,
      val: Union[ivy.Array, ivy.NativeArray],
      /,
      *,
      ensure_in_backend: bool = False,
      keep_input_dtype: bool = False,
  ) -> ivy.Array:
      """ivy.Array instance method variant of ivy.inplace_update. This method
      simply wraps the function, and so the docstring for ivy.inplace_update
      also applies to this method with minimal changes.
  
      Parameters
      ----------
      self
          input array to update
      val
          The array to update the variable with.
      ensure_in_backend
          Whether to ensure that the `ivy.NativeArray` is also inplace updated.
          In cases where it should be, backends which do not natively support inplace
          updates will raise an exception.
      keep_input_dtype
          Whether or not to preserve `x` data type after the update, otherwise `val`
          data type will be applied. Defaults to False.
  
      Returns
      -------
      ret
          The array following the in-place update.
  
      Examples
      --------
      With :class:`ivy.Array` input and default backend set as `numpy`:
  
      >>> x = ivy.array([1, 2, 3])
      >>> y = ivy.array([0])
      >>> x.inplace_update(y)
      >>> print(x)
      ivy.array([0])
  
      With :class:`ivy.Array` input and default backend set as `numpy`:
  
      >>> x = ivy.array([1, 2, 3], dtype=ivy.float32)
      >>> y = ivy.array([0, 0, 0], dtype=ivy.int32)
      >>> x.inplace_update(y, keep_input_dtype=True)
      >>> print(x)
      ivy.array([0., 0., 0.])
  
      With :class:`ivy.Array` input and default backend set as `torch`:
  
      >>> x = ivy.array([1, 2, 3])
      >>> y = ivy.array([0])
      >>> x.inplace_update(y)
      >>> print(x)
      ivy.array([0])
  
      With :class:`ivy.Array` input and default backend set as `jax`:
  
      >>> x = ivy.array([4, 5, 6])
      >>> y = ivy.array([1])
      >>> x.inplace_update(y)
      IvyBackendException: jax: inplace_update: JAX does not natively
      support inplace updates
      """
      return ivy.inplace_update(
          self,
          val,
          ensure_in_backend=ensure_in_backend,
          keep_input_dtype=keep_input_dtype,
      )
  
imports: import abc
  import numpy
  from numbers import Number
  from typing import Any, Iterable, Union, Optional, Dict, Callable, List, Tuple
  import ivy
label_desc: Use image node_id 28 for calling the _ArrayWithGeneral obj's underlying member method code with example usage: obj.inplace_update() and returns: ivy