Skip to content

Commit 1e4f442

Browse files
committed
fix a compile error
1 parent 869ef01 commit 1e4f442

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/fluid/operators/conditional_block_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ class ConditionalOp : public framework::OperatorBase {
5454
"numel should be 1, actual numel is %d",
5555
ips[0]->numel());
5656
}
57-
bool res;
57+
bool res = false;
5858
if (platform::is_gpu_place(ips[0]->place())) {
5959
#ifdef PADDLE_WITH_CUDA
6060
framework::LoDTensor cpu_tensor;

0 commit comments

Comments
 (0)