Skip to content

[XPU] add dropout bridge and unit test#2650

Merged
zhupengyang merged 3 commits into
PaddlePaddle:developfrom
zhupengyang:dropout-xpu-1223
Dec 24, 2019
Merged

[XPU] add dropout bridge and unit test#2650
zhupengyang merged 3 commits into
PaddlePaddle:developfrom
zhupengyang:dropout-xpu-1223

Conversation

@zhupengyang
Copy link
Copy Markdown
Collaborator

No description provided.

void PrepareData() override {
std::vector<float> input_data(dims_.production());
for (int i = 0; i < dims_.production(); i++) {
#if 0
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

去掉无用的代码

Comment thread lite/tests/kernels/dropout_compute_test.cc
hong19860320
hong19860320 previously approved these changes Dec 23, 2019
Copy link
Copy Markdown
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Copy Markdown
Collaborator

@hong19860320 hong19860320 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhupengyang zhupengyang merged commit d904c9d into PaddlePaddle:develop Dec 24, 2019
@zhupengyang zhupengyang deleted the dropout-xpu-1223 branch December 24, 2019 05:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants