File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ class ListenAndServOp : public framework::OperatorBase {
96
96
97
97
auto *block = Attr<framework::BlockDesc *>(kOptimizeBlock );
98
98
auto *program = block->Program ();
99
- int num_blocks = program->Size ();
99
+ size_t num_blocks = program->Size ();
100
100
PADDLE_ENFORCE_GE (num_blocks, 2 ,
101
101
" server program should have at least 2 blocks" );
102
102
@@ -153,7 +153,7 @@ class ListenAndServOp : public framework::OperatorBase {
153
153
154
154
// The optimize blocks which have the same parent ID would run parallel
155
155
// TODO(Yancey1989): need to use ParallelExecutor for future
156
- size_t last_parent_blkid = program->Block (1 ).Parent ();
156
+ int32_t last_parent_blkid = program->Block (1 ).Parent ();
157
157
std::vector<size_t > parallel_blkids;
158
158
parallel_blkids.push_back (1 );
159
159
double ts = detail::GetTimestamp ();
You can’t perform that action at this time.
0 commit comments