File tree Expand file tree Collapse file tree 1 file changed +12
-8
lines changed
paddle/fluid/distributed/fleet_executor Expand file tree Collapse file tree 1 file changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -487,21 +487,25 @@ bool DistModel::PrepareFeedAndFetch() {
487487 if (feeds_.size () == 0 ) {
488488 LOG (ERROR) << " Feed ops are needed for the first pp stage." ;
489489 return false ;
490+ }
491+ } else {
492+ if (feeds_.size () > 0 ) {
493+ LOG (WARNING) << " Feed op is found in the non-first stage of pp." ;
490494 } else {
491- LOG (WARNING ) << " No feed ops in non-first pp stage." ;
495+ LOG (INFO ) << " No feed ops in non-first pp stage." ;
492496 }
493- } else if (feeds_.size () > 0 ) {
494- LOG (WARNING) << " Feed op is found in the non-first stage of pp." ;
495497 }
496498 if (IsPPLastStage (config_)) {
497499 if (fetches_.size () == 0 ) {
498- LOG (ERROR) << " Fetch op is needed for the last pp stage." ;
499- return false ;
500+ LOG (WARNING) << " No fetch op was found in the last pp stage. Make sure "
501+ " the result has been sent to frist pp stage." ;
502+ }
503+ } else {
504+ if (fetches_.size () > 0 ) {
505+ LOG (WARNING) << " Fetch op is found in the non-last stage of pp." ;
500506 } else {
501- LOG (WARNING ) << " No fetch op in non-last pp stage." ;
507+ LOG (INFO ) << " No fetch op in non-last pp stage." ;
502508 }
503- } else if (fetches_.size () > 0 ) {
504- LOG (WARNING) << " Fetch op is found in the non-last stage of pp." ;
505509 }
506510 }
507511 return true ;
You can’t perform that action at this time.
0 commit comments