diff --git a/paddle/fluid/operators/reader/ctr_reader.cc b/paddle/fluid/operators/reader/ctr_reader.cc index 3156070e2c4b7e538fb0193310b6c808a17c6fc6..60d7742bce4c341d522b5f1e31811335c36dac00 100644 --- a/paddle/fluid/operators/reader/ctr_reader.cc +++ b/paddle/fluid/operators/reader/ctr_reader.cc @@ -218,7 +218,7 @@ void ReadThread(const std::vector& file_list, // insert label tensor framework::LoDTensor label_tensor; - int64_t* label_tensor_data = label_tensor.mutable_data( + auto* label_tensor_data = label_tensor.mutable_data( framework::make_ddim({1, static_cast(batch_label.size())}), platform::CPUPlace()); memcpy(label_tensor_data, batch_label.data(),