Skip to content

Commit e7d1f52

Browse files
committed
change log level
test=develop
1 parent fe54adf commit e7d1f52

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

paddle/fluid/operators/gaussian_random_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ Used to initialize tensors with gaussian random generator.
126126
} // namespace paddle
127127

128128
namespace ops = paddle::operators;
129-
REGISTER_OP_WITHOUT_GRADIENT(gaussian_random, ops::GaussianRandomOp,
129+
REGISTER_OP_WITHOUT_GRADIENT(ctr_reader.cc, ops::GaussianRandomOp,
130130
ops::GaussianRandomOpMaker);
131131
REGISTER_OP_CPU_KERNEL(gaussian_random, ops::CPUGaussianRandomKernel<float>,
132132
ops::CPUGaussianRandomKernel<double>);

paddle/fluid/operators/reader/ctr_reader.cc

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -125,36 +125,36 @@ class MultiGzipReader : public Reader {
125125

126126
void MonitorThread(std::vector<ReaderThreadStatus>* thread_status,
127127
std::shared_ptr<LoDTensorBlockingQueue> queue) {
128-
VLOG(3) << "monitor thread in";
128+
VLOG(30) << "monitor thread in";
129129
bool reader_thread_is_running = true;
130130
while (reader_thread_is_running) {
131-
VLOG(3) << "reader_thread_is_running";
131+
VLOG(30) << "reader_thread_is_running";
132132
reader_thread_is_running = false;
133133
for (size_t i = 0; i < (*thread_status).size(); ++i) {
134134
if ((*thread_status)[i] == Running) {
135-
VLOG(3) << "reader is running!";
135+
VLOG(30) << "reader is running!";
136136
reader_thread_is_running = true;
137137
}
138138
}
139139
std::this_thread::sleep_for(std::chrono::milliseconds(1000));
140140
}
141-
VLOG(3) << "all reader thread is stopped, push empty data into queue";
141+
VLOG(30) << "all reader thread is stopped, push empty data into queue";
142142
queue->Push({});
143-
VLOG(3) << "monitor thread exited";
143+
VLOG(30) << "monitor thread exited";
144144
}
145145

146146
void ReadThread(const std::vector<std::string>& file_list,
147147
const std::vector<std::string>& slots, int batch_size,
148148
int thread_id, std::vector<ReaderThreadStatus>* thread_status,
149149
std::shared_ptr<LoDTensorBlockingQueue> queue) {
150-
VLOG(3) << "[" << thread_id << "]"
151-
<< " reader thread start! thread_id = " << thread_id;
150+
VLOG(30) << "[" << thread_id << "]"
151+
<< " reader thread start! thread_id = " << thread_id;
152152
for (auto& file : file_list) {
153-
VLOG(3) << "[" << thread_id << "]"
154-
<< " file " << file;
153+
VLOG(30) << "[" << thread_id << "]"
154+
<< " file " << file;
155155
}
156156
(*thread_status)[thread_id] = Running;
157-
VLOG(3) << "set status to running";
157+
VLOG(30) << "set status to running";
158158

159159
std::unordered_map<std::string, size_t> slot_to_index;
160160
for (size_t i = 0; i < slots.size(); ++i) {
@@ -168,7 +168,7 @@ void ReadThread(const std::vector<std::string>& file_list,
168168

169169
MultiGzipReader reader(file_list);
170170

171-
VLOG(3) << "reader inited";
171+
VLOG(30) << "reader inited";
172172

173173
while (reader.HasNext()) {
174174
batch_data.clear();
@@ -226,11 +226,11 @@ void ReadThread(const std::vector<std::string>& file_list,
226226
lod_datas.push_back(label_tensor);
227227

228228
queue->Push(lod_datas);
229-
VLOG(4) << "push one data, queue_size=" << queue->Size();
229+
VLOG(40) << "push one data, queue_size=" << queue->Size();
230230
}
231231

232232
(*thread_status)[thread_id] = Stopped;
233-
VLOG(3) << "set status to stopped, thread " << thread_id << " exited";
233+
VLOG(30) << "set status to stopped, thread " << thread_id << " exited";
234234
}
235235

236236
} // namespace reader

0 commit comments

Comments
 (0)