-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/copytensor #5455
Feature/copytensor #5455
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Putting non-member functions to a separated place is awesome.
paddle/framework/CMakeLists.txt
Outdated
@@ -5,8 +5,13 @@ cc_library(ddim SRCS ddim.cc DEPS eigen3) | |||
cc_test(ddim_test SRCS ddim_test.cc DEPS ddim) | |||
nv_test(dim_test SRCS dim_test.cu DEPS ddim) | |||
|
|||
# cc_library(tensor SRCS tensor.cc tensor_util.cc DEPS ddim place paddle_memory device_context) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No commented out codes please.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
@@ -0,0 +1,36 @@ | |||
import unittest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should remove this file since or put under v2/fluid/test
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have another PR in of #5454. which I can move this file to the correct place in that PR.
This PR is so huge and fragile, I think we can mark that and do it later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM++
@@ -0,0 +1,36 @@ | |||
import unittest |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
please clear code before merge if code is too old |
fix #4647
This PR contains
CopyFrom
andCopyFromVector
from Tensor interface and make them global functions #4647 , move utility function out of Tensor.