未验证 提交 04ee4da9 编写于 作者: Q Qiao Longfei 提交者: GitHub

Merge pull request #6937 from jacquesqiao/fix-math-warning

fix math_function warning
...@@ -94,8 +94,8 @@ class ColwiseSum<platform::CPUDeviceContext, T> { ...@@ -94,8 +94,8 @@ class ColwiseSum<platform::CPUDeviceContext, T> {
T* out_buf = out->mutable_data<T>(out->place()); T* out_buf = out->mutable_data<T>(out->place());
const T* in_buf = input.data<T>(); const T* in_buf = input.data<T>();
for (size_t i = 0; i < height; ++i) { for (size_t i = 0; i < static_cast<size_t>(height); ++i) {
for (size_t j = 0; j < size; ++j) { for (size_t j = 0; j < static_cast<size_t>(size); ++j) {
if (i == 0) { if (i == 0) {
out_buf[j] = in_buf[i * size + j]; out_buf[j] = in_buf[i * size + j];
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册