常见手撕算子——sgemm(单精度矩阵乘法)
1. cpu: 矩阵乘法
1 | void matrixMultiply(const float* A, const float* B, float* C, int m, int p, int n) { |
2. cublas: 矩阵乘法库
1 | //cublasSgemm公式: |
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来源 一只大笨熊!
评论
1 | void matrixMultiply(const float* A, const float* B, float* C, int m, int p, int n) { |
1 | //cublasSgemm公式: |