[object Object][object Object][object Object]undefined
[object Object]
  • Description: Replaces the value at the position specified by index with value along the specified axis dim of the input self.

  • Example: Input self:

      [[1, 2, 3],

       [4, 5, 6],

       [7, 8, 9]]

    If dim = 0, index = [0, 2], and value = 0, the computation result of the operator is as follows:

      [[0, 0, 0],

       [4, 5, 6],

       [0, 0, 0]]

    If dim = 1, index = [0, 2], and value = 0, the computation result of the operator is as follows:

      [[0, 2, 0],

       [0, 5, 0],

       [0, 8, 0]]

[object Object]
  • aclnnIndexFillTensor and aclnnInplaceIndexFillTensor implement the same function in different ways. Select a proper operator based on your requirements.

    • aclnnIndexFillTensor: An output tensor object needs to be created to store the computation result.
    • aclnnInplaceIndexFillTensor: No output tensor object needs to be created, and the computation result is stored in the memory of the input tensor.
  • Each operator has calls. First, aclnnIndexFillTensorGetWorkspaceSize or aclnnInplaceIndexFillTensorGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation process. Then, aclnnIndexFillTensor or aclnnInplaceIndexFillTensor is called to perform computation.

[object Object]
[object Object]
[object Object]
[object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

    [object Object]: status code. For details, see .

[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

    The first-phase API implements input parameter verification. The following errors may be thrown.

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns

    [object Object]: status code. For details, see .

[object Object]
  • Deterministic computation:
    • aclnnIndexFillTensor and aclnnInplaceIndexFillTensor default to a deterministic implementation.
[object Object]

The following example is for reference only. For details, see .

aclnnIndexFillTensor call example:

[object Object]

aclnnInplaceIndexFillTensor call example:

[object Object]