@@ -193,12 +193,12 @@ void DAGNetBase::HandleException(
193
193
operator_nodes_[operator_idx].operator_ ->debug_def ().name ();
194
194
const std::string& operator_type =
195
195
operator_nodes_[operator_idx].operator_ ->debug_def ().type ();
196
- const char * prefix = " Exception from operator '" ;
196
+ const char * prefix = " Exception from operator chain starting at '" ;
197
197
#ifdef CAFFE2_USE_EXCEPTION_PTR
198
198
if (!caught_exception_yet_.exchange (true )) {
199
199
caught_exception_ = std::current_exception ();
200
200
} else {
201
- prefix = " Secondary exception from operator '" ;
201
+ prefix = " Secondary exception from operator chain starting at '" ;
202
202
}
203
203
#endif // CAFFE2_USE_EXCEPTION_PTR
204
204
LOG (ERROR) << prefix << operator_name << " ' (type '" << operator_type
@@ -228,7 +228,7 @@ void DAGNetBase::WorkerFunction() {
228
228
task_timers_[idx]->MicroSeconds ());
229
229
}
230
230
231
- VLOG (1 ) << " Running operator #" << idx << " "
231
+ VLOG (1 ) << " Running chain starting at operator #" << idx << " "
232
232
<< operator_nodes_[idx].operator_ ->debug_def ().name () << " ("
233
233
<< operator_nodes_[idx].operator_ ->debug_def ().type () << " )." ;
234
234
CAFFE_ENFORCE (
@@ -244,7 +244,7 @@ void DAGNetBase::WorkerFunction() {
244
244
if (!this_success) {
245
245
// If an exception was thrown, the operator def will get printed
246
246
// by Operator::Run[Async], but if no exception occurs we print it here.
247
- LOG (ERROR) << " Operator chain failed: "
247
+ LOG (ERROR) << " Operator chain failed starting at : "
248
248
<< ProtoDebugString (
249
249
operator_nodes_[idx].operator_ ->debug_def ());
250
250
}
0 commit comments