我要评分
获取效率
正确性
完整性
易理解

kutacc_af2_linear

KuTACC implementation for linear change, corresponding to the following formula:

Interface Definition

void kutacc_af2_linear(kutacc_tensor_h act, kutacc_tensor_h weight, float* bias_data, kutacc_tensor_h result, int64_t beta);

Parameters

Parameter

Type

Description

Input/Output

act

kutacc_tensor_h

Basic data A

Input

weight

kutacc_tensor_h

Weight parameter B

Input

bias_data

float *

Bias data

Input

result

kutacc_tensor_h

Calculation result

Output

beta

int64_t

Coefficient of C

Input

Parameter constraints:

The dimension size of bias must equal the dimension size of weight minus 1.

The dimension sizes of act and weight are both greater than or equal to 2.