"tutorials/git@developer.sourcefind.cn:OpenDAS/dgl.git" did not exist on "7156c7163b046686064d7c9de445041870e672bc"
Commit c763fafd authored by Davis King's avatar Davis King
Browse files

Fixed broken memcpy overload.

parent 61a021c9
...@@ -184,7 +184,7 @@ namespace dlib ...@@ -184,7 +184,7 @@ namespace dlib
) )
{ {
if (src.size() != dest.size()) if (src.size() != dest.size())
dest = cuda_data_ptr<T>(dest.size()); dest = cuda_data_ptr<T>(src.size());
if (dest.size() != 0) if (dest.size() != 0)
memcpy(dest.pdata, src.data()); memcpy(dest.pdata, src.data());
......
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