Commit 93410af3 authored by Davis King's avatar Davis King

Fixed a bug in cuda::gemm()

parent dae8929a
...@@ -110,8 +110,8 @@ namespace dlib ...@@ -110,8 +110,8 @@ namespace dlib
mat(lhs).nc() == mat(rhs).nr(),"") mat(lhs).nc() == mat(rhs).nr(),"")
} }
const int m = mat(dest).nr(); const int m = mat(dest).nc();
const int n = mat(dest).nc(); const int n = mat(dest).nr();
const int k = trans_rhs ? mat(rhs).nc() : mat(rhs).nr(); const int k = trans_rhs ? mat(rhs).nc() : mat(rhs).nr();
check(cublasSgemm(context(), check(cublasSgemm(context(),
transb, transb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment