From 2aa49034b41379921a3be6b9178723093df9b5a8 Mon Sep 17 00:00:00 2001 From: zhengjun10 Date: Fri, 11 Feb 2022 09:39:31 +0800 Subject: [PATCH] fix fl client log print --- .../main/java/com/mindspore/flclient/model/Client.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/Client.java b/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/Client.java index 593481d037e..4c021aa0728 100644 --- a/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/Client.java +++ b/mindspore/lite/java/java/fl_client/src/main/java/com/mindspore/flclient/model/Client.java @@ -239,7 +239,7 @@ public abstract class Client { } } long endTime = System.currentTimeMillis(); - logger.info(Common.addTag("total train time:" + (endTime - startTime) + "ms")); + logger.info(Common.addTag("total run time:" + (endTime - startTime) + "ms")); return Status.SUCCESS; } @@ -277,7 +277,8 @@ public abstract class Client { } trainSession = LiteSession.createSession(msConfig); if (trainSession == null) { - logger.severe(Common.addTag("init session failed,please check model path:" + modelPath)); + logger.severe(Common.addTag("init session failed,please check model :" + modelPath + " is valid or " + + "disk space is enough")); msConfig.free(); model.free(); return Optional.empty(); @@ -295,7 +296,8 @@ public abstract class Client { } else { trainSession = TrainSession.createTrainSession(modelPath, msConfig, false); if (trainSession == null) { - logger.severe(Common.addTag("init session failed,please check model path:" + modelPath)); + logger.severe(Common.addTag("init session failed,please check model :" + modelPath + " is valid or " + + "disk space is enough")); return Optional.empty(); } return Optional.of(trainSession);