提交 1e4f442a 编写于 作者: F fengjiayi

fix a compile error

上级 869ef01d
...@@ -54,7 +54,7 @@ class ConditionalOp : public framework::OperatorBase { ...@@ -54,7 +54,7 @@ class ConditionalOp : public framework::OperatorBase {
"numel should be 1, actual numel is %d", "numel should be 1, actual numel is %d",
ips[0]->numel()); ips[0]->numel());
} }
bool res; bool res = false;
if (platform::is_gpu_place(ips[0]->place())) { if (platform::is_gpu_place(ips[0]->place())) {
#ifdef PADDLE_WITH_CUDA #ifdef PADDLE_WITH_CUDA
framework::LoDTensor cpu_tensor; framework::LoDTensor cpu_tensor;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册