设置Bias的位置,数据格式,数据类型等信息,这些信息需要和kernel侧的设置保持一致。
int32_t SetBiasType(TPosition pos, CubeFormat type, DataType dataType);
参数名 |
输入/输出 |
描述 |
---|---|---|
pos |
输入 |
Bias矩阵所在的buffer位置,可设置为:TPosition::GM, TPosition::VECOUT, TPosition::TSCM。 |
type |
输入 |
Bias矩阵的数据格式,可设置为:CubeFormat::ND。 |
dataType |
输入 |
Bias矩阵的数据类型,可设置为:DataType::DT_FLOAT/DataType::DT_FLOAT16。 |
-1表示设置失败; 0表示设置成功。
无