From 1e4f442a84ecf2ad27a7afaf80062ade5b333516 Mon Sep 17 00:00:00 2001 From: fengjiayi Date: Thu, 29 Mar 2018 16:21:07 +0800 Subject: [PATCH] fix a compile error --- paddle/fluid/operators/conditional_block_op.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/operators/conditional_block_op.cc b/paddle/fluid/operators/conditional_block_op.cc index bbe297206eb..bff2c34ec89 100644 --- a/paddle/fluid/operators/conditional_block_op.cc +++ b/paddle/fluid/operators/conditional_block_op.cc @@ -54,7 +54,7 @@ class ConditionalOp : public framework::OperatorBase { "numel should be 1, actual numel is %d", ips[0]->numel()); } - bool res; + bool res = false; if (platform::is_gpu_place(ips[0]->place())) { #ifdef PADDLE_WITH_CUDA framework::LoDTensor cpu_tensor; -- GitLab