Skip to content

Commit 1831176

Browse files
authored
Merge pull request #7094 from luotao1/warning
fix some warning
2 parents 2cdef42 + 717e125 commit 1831176

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

paddle/platform/for_range.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ struct ForRange<CUDADeviceContext> {
6262

6363
template <typename Function>
6464
inline void operator()(Function func) const {
65-
constexpr size_t num_threads = 1024;
65+
constexpr int num_threads = 1024;
6666
int block_size = limit_ <= num_threads ? limit_ : num_threads;
6767
int grid_size = (limit_ + num_threads - 1) / num_threads;
6868

0 commit comments

Comments
 (0)