parameters: (x, i, array=None)
return_statement: return layers.array_write(x, i, array)
docstring: This OP writes the input ``x`` into the i-th position of the ``array`` returns the modified array.
      If ``array`` is none, a new array will be created and returned.
  
      Args:
          x (Tensor): The input data to be written into array. It's multi-dimensional
              Tensor or LoDTensor. Data type: float32, float64, int32, int64 and bool.
          i (Tensor): 1-D Tensor with shape [1], which represents the position into which
              ``x`` is written.
          array (list|Tensor, optional): The array into which ``x`` is written. The default value is None,
              when a new array will be created and returned as a result. In dynamic mode, ``array`` is a Python list.
              But in static mode, array is a Tensor whose ``VarType`` is ``LOD_TENSOR_ARRAY``.
  
      Returns:
          list|Tensor: The input ``array`` after ``x`` is written into.
  
      Examples:
          .. code-block:: python
  
              import paddle
  
              arr = paddle.tensor.create_array(dtype="float32")
              x = paddle.full(shape=[1, 3], fill_value=5, dtype="float32")
              i = paddle.zeros(shape=[1], dtype="int32")
  
              arr = paddle.tensor.array_write(x, i, array=arr)
  
              item = paddle.tensor.array_read(arr, i)
              print(item)     # [[5., 5., 5.]]
docstring_summary: This OP writes the input ``x`` into the i-th position of the ``array`` returns the modified array.
      If ``array`` is none, a new array will be created and returned.
docstring_tokens: This OP writes the input x into the i - th position of the array returns the modified array . If array is none a new array will be created and returned .
function: def array_write(x, i, array=None):
      """
      This OP writes the input ``x`` into the i-th position of the ``array`` returns the modified array.
      If ``array`` is none, a new array will be created and returned.
  
      Args:
          x (Tensor): The input data to be written into array. It's multi-dimensional
              Tensor or LoDTensor. Data type: float32, float64, int32, int64 and bool.
          i (Tensor): 1-D Tensor with shape [1], which represents the position into which
              ``x`` is written.
          array (list|Tensor, optional): The array into which ``x`` is written. The default value is None,
              when a new array will be created and returned as a result. In dynamic mode, ``array`` is a Python list.
              But in static mode, array is a Tensor whose ``VarType`` is ``LOD_TENSOR_ARRAY``.
  
      Returns:
          list|Tensor: The input ``array`` after ``x`` is written into.
  
      Examples:
          .. code-block:: python
  
              import paddle
  
              arr = paddle.tensor.create_array(dtype="float32")
              x = paddle.full(shape=[1, 3], fill_value=5, dtype="float32")
              i = paddle.zeros(shape=[1], dtype="int32")
  
              arr = paddle.tensor.array_write(x, i, array=arr)
  
              item = paddle.tensor.array_read(arr, i)
              print(item)     # [[5., 5., 5.]]
      """
      return layers.array_write(x, i, array)
function_tokens: def array_write ( x , i , array = None ) : return layers . array_write ( x , i , array )