You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by jx...@apache.org on 2017/08/01 23:10:20 UTC
[incubator-mxnet] branch master updated: fix initialization warning
by g++ (#7294)
This is an automated email from the ASF dual-hosted git repository.
jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git
The following commit(s) were added to refs/heads/master by this push:
new 202373f fix initialization warning by g++ (#7294)
202373f is described below
commit 202373f7331fcbad80bc677f4a7f76df6cd91175
Author: Rahul Huilgol <ra...@gmail.com>
AuthorDate: Tue Aug 1 16:10:17 2017 -0700
fix initialization warning by g++ (#7294)
---
src/io/iter_image_recordio_2.cc | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/io/iter_image_recordio_2.cc b/src/io/iter_image_recordio_2.cc
index 18d12ff..9d4ebf4 100644
--- a/src/io/iter_image_recordio_2.cc
+++ b/src/io/iter_image_recordio_2.cc
@@ -360,10 +360,10 @@ inline void ImageRecordIOParser2<DType>::ParseChunk(dmlc::InputSplit::Blob * chu
(rand_uniform(*(prnds_[tid])) * normalize_param_.max_random_illumination * 2
- normalize_param_.max_random_illumination) * normalize_param_.scale;
}
+ DType RGBA[4] = {};
for (int i = 0; i < res.rows; ++i) {
uchar* im_data = res.ptr<uchar>(i);
for (int j = 0; j < res.cols; ++j) {
- DType RGBA[4];
for (int k = 0; k < n_channels; ++k) {
RGBA[k] = im_data[swap_indices[k]];
}
--
To stop receiving notification emails like this one, please contact
['"commits@mxnet.apache.org" <co...@mxnet.apache.org>'].