[object Object][object Object][object Object]undefined
[object Object]
  • Description:

    Performs preprocessing on the weight matrix of structured sparsity and outputs the compressed sparse matrix and the corresponding index matrix. If there are at least two zeros in every four elements of the original sparse matrix, the compressed sparse matrix is a matrix in which two zeros are filtered out from every four elements. During matrix compression, an index matrix is generated. For every four elements in the original matrix, two 2-bit indexes are generated in the index matrix and encoded according to the rules.

[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]

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

  • [object Object]Atlas A2 training products/Atlas A2 inference products[object Object] and [object Object]Atlas A3 training products/Atlas A3 inference products[object Object]:

    [object Object]