-
Notifications
You must be signed in to change notification settings - Fork 5.9k
"cudnn operators change to cudnn kernel" #6660
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
Merged
dzhwinter
merged 40 commits into
PaddlePaddle:develop
from
dzhwinter:feature/cudnn_kernel
Jan 14, 2018
Merged
Changes from 28 commits
Commits
Show all changes
40 commits
Select commit
Hold shift + click to select a range
7086e1c
"unified operators"
dzhwinter ab0cf15
Merge remote-tracking branch 'origin/develop' into feature/cudnn_kernel
dzhwinter c1964df
"add CUDNN register"
dzhwinter 20828d9
merge develop branch
dzhwinter 755936d
"add use cudnn attribute"
dzhwinter 39f51e0
merge develop branch
dzhwinter 75acd80
"add attribute"
dzhwinter f116609
"test conv tranpose op"
dzhwinter 6ca8206
"remove duplicated attr"
dzhwinter 21893df
"fix op test"
dzhwinter 2787821
"add attribute to set cudnn"
dzhwinter b60a57d
"add more log"
dzhwinter 6da6045
"need layout op register support"
dzhwinter 56fb182
"add more log"
dzhwinter b81372c
merge develop branch
dzhwinter 2c80230
merge develop branch
dzhwinter 8b46297
"change GetExpectedKernelType "
dzhwinter b58555c
"fix Get attr in conv_op"
dzhwinter 6d8af62
Merge remote-tracking branch 'origin/develop' into feature/cudnn_kernel
dzhwinter ccf39fe
"fix CI"
dzhwinter 327d813
"fix tests"
dzhwinter f05fdfe
"removed kernel priority fallback"
dzhwinter 17bd560
merge develop branch
dzhwinter 0b7b8f5
"fix CI"
dzhwinter e6f6ec1
"fix stack pointer bug"
dzhwinter b285464
"refine buggy interface"
dzhwinter bf787d4
"add const cast to save life"
dzhwinter de74369
"fix get_output_with_grad"
dzhwinter c0b6f9e
"fix op test with dataformat"
dzhwinter ea850d3
merge develop
dzhwinter 0bf18f8
""fix pooling
dzhwinter c32fe6a
"fix pooling test"
dzhwinter 84906e1
"fix CI"
dzhwinter 59aa443
"fix with_gpu error"
dzhwinter 212bf5f
"add transform needed functional check"
dzhwinter adb6714
"fix unpack list error"
dzhwinter caf3324
"comment out parallel.do temporary"
dzhwinter bfbbdf3
"fix CI"
dzhwinter f2312dd
"fix compile doc error"
dzhwinter d0b8b9b
"make threshold larger"
dzhwinter File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,16 +19,19 @@ limitations under the License. */ | |
| namespace paddle { | ||
| namespace framework { | ||
|
|
||
| Tensor* DataTransform(const OpKernelType& expected_kernel_type, | ||
| const OpKernelType& kernel_type_for_var, | ||
| const Tensor& input_tensor) { | ||
| Tensor* out = nullptr; | ||
| void DataTransform(const OpKernelType& expected_kernel_type, | ||
| const OpKernelType& kernel_type_for_var, | ||
| const Tensor& input_tensor, Tensor* out) { | ||
| if (expected_kernel_type.library_type_ != kernel_type_for_var.library_type_) { | ||
| Copy(input_tensor, expected_kernel_type.place_, out); | ||
|
||
| return; | ||
| } | ||
|
|
||
| if (!platform::is_same_place(kernel_type_for_var.place_, | ||
| expected_kernel_type.place_)) { | ||
| out = DeviceTransform(input_tensor, expected_kernel_type.place_); | ||
| } | ||
| PADDLE_ENFORCE_NOT_NULL(out, "out should not be null"); | ||
| return out; | ||
| } | ||
|
|
||
| void CopyVariableWithTensor(const Variable& in_var, const Tensor& tensor, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back 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.
out->set_library()?
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, library is a mark of a kernel. Tensor does not have that field.