SetDoubleBuffer

Function

Determines whether to enable double buffer for A, B, C, and bias, and whether to enable ND2NZ or NZ2ND conversion. This API is used for internal optimization of the tiling function.

This API is reserved and not supported in the current version.

Prototype

1
int32_t SetDoubleBuffer(bool a, bool b, bool c, bool bias, bool transND2NZ = true, bool transNZ2ND = true)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

a

Input

Sets whether to enable double buffer for matrix A.

b

Input

Sets whether to enable double buffer for matrix B.

c

Input

Sets whether to enable double buffer for matrix C.

bias

Input

Sets whether to enable double buffer for the bias matrix.

transND2NZ

Input

Sets whether ND2NZ is required.

transNZ2ND

Input

Sets whether NZ2ND is required.

Returns

-1: setting failed; 0: setting succeeded.

Restrictions

None