saving comments

This commit is contained in:
Davis King 2016-01-09 08:16:33 -05:00
parent 537da11f38
commit 6f63bc6279
1 changed files with 2 additions and 0 deletions

View File

@ -264,11 +264,13 @@ namespace dlib
resizable_tensor(const resizable_tensor& item)
{
// TODO, do the copy with cuda?
copy_size(item);
std::memcpy(data_instance.host(), item.host(), data_instance.size()*sizeof(float));
}
resizable_tensor(const tensor& item)
{
// TODO, do the copy with cuda?
copy_size(item);
std::memcpy(data_instance.host(), item.host(), data_instance.size()*sizeof(float));
}