mirror of
https://github.com/davisking/dlib.git
synced 2024-11-01 10:14:53 +08:00
saving comments
This commit is contained in:
parent
537da11f38
commit
6f63bc6279
@ -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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user