assign

dragon.assign(
  inputs,
  starts=None,
  sizes=None,
  **kwargs
)[source]

Assign the value to input.

\[\text{input}[\text{start}:\text{start} + \text{size}, ...] = \text{value} \]
Parameters:
  • inputs (Sequence[dragon.Tensor]) – The input and value tensor.
  • starts (Sequence[Union[int, dragon.Tensor]], optional) – The start location for each dimension.
  • sizes (Sequence[Union[int, dragon.Tensor]], optional) – The number of elements assigned from start.
Returns:

dragon.Tensor – The input tensor.