[object Object]

[object Object][object Object]undefined
[object Object]
  • Function: Fills the diagonal of a tensor with the specified fill value.
  • Calculation formula: Take a two-dimensional model as an example. When [object Object] is [object Object], the filling position is [object Object], where [object Object], [object Object], and [object Object] is the column length and row is the row length. When [object Object] is [object Object], the filling position is [object Object], where [object Object], [object Object], [object Object] is the column length, [object Object] is the row length, and [object Object].
[object Object]

Each operator has calls. First, [object Object] is called to obtain the input parameters and compute the required workspace size based on the process. Then, [object Object] is called to perform computation.

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

    [object Object]
  • Returns:

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

    The first-phase API implements input parameter validation. The following error codes may be returned:

    [object Object]
[object Object]
  • Parameters

    [object Object]
  • Returns:

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

[object Object]
  • Deterministic computing:
    • [object Object] defaults to a deterministic implementation.
[object Object]

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

[object Object]