diff --git a/src/io/iter_image_recordio_2.cc b/src/io/iter_image_recordio_2.cc index f41483955494..b567c729736c 100644 --- a/src/io/iter_image_recordio_2.cc +++ b/src/io/iter_image_recordio_2.cc @@ -285,9 +285,9 @@ inline bool ImageRecordIOParser2::ParseNext(DataBatch *out) { shape_vec.push_back(param_.label_width); TShape label_shape(shape_vec.begin(), shape_vec.end()); - out->data.at(0) = NDArray(data_shape, Context::CPUPinned(0), false, + out->data.at(0) = NDArray(data_shape, Context::CPU(0), false, mshadow::DataType::kFlag); - out->data.at(1) = NDArray(label_shape, Context::CPUPinned(0), false, + out->data.at(1) = NDArray(label_shape, Context::CPU(0), false, mshadow::DataType::kFlag); unit_size_[0] = param_.data_shape.Size(); unit_size_[1] = param_.label_width;