EnableBias
Function Usage
Sets whether the bias is used in computation. The setting must be the same as that on the kernel.
Prototype
1 | int32_t EnableBias(bool isBiasIn = false) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
isBiasIn |
Input |
Whether the bias is used in computation. true: The bias is used in computation. false: The bias is not used in computation. |
Returns
-1: setting failed; 0: setting succeeded.
Restrictions
None
Examples
1 2 3 4 | auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); matmul_tiling::MatmulApiTiling tiling(ascendcPlatform); tiling.EnableBias(true); // Set whether Bias is involved in computation. |
Parent topic: Matmul Tiling