Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
6f63bc62
Commit
6f63bc62
authored
Jan 09, 2016
by
Davis King
Browse files
saving comments
parent
537da11f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
dlib/dnn/tensor.h
dlib/dnn/tensor.h
+2
-0
No files found.
dlib/dnn/tensor.h
View file @
6f63bc62
...
...
@@ -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
));
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment