diff --git a/fluid/language_model/train.py b/fluid/language_model/train.py index f3e7a7398bf13e14c74ce1d10d90b7bf34031698..e719f8f107852f79972c1ad59b7388b52295691e 100644 --- a/fluid/language_model/train.py +++ b/fluid/language_model/train.py @@ -145,7 +145,7 @@ def train(train_reader, if pass_idx == pass_num - 1 and args.enable_ce: #Note: The following logs are special for CE monitoring. #Other situations do not need to care about these logs. - gpu_num = get_cards() + gpu_num = get_cards(args.enable_ce) if gpu_num == 1: print("kpis imikolov_20_pass_duration %s" % (total_time / epoch_idx))