!19133 fix bug of build.gradle for fl_client

Merge pull request !19133 from zhoushan33/flclient0630_2_om
This commit is contained in:
i-robot 2021-06-30 06:22:00 +00:00 committed by Gitee
commit f4d05174e6
2 changed files with 6 additions and 2 deletions

View File

@ -66,7 +66,7 @@ dependencies {
import io.netifi.flatbuffers.plugin.tasks.FlatBuffers
flatbuffers {
String msLib = System.getenv("MSLIBS_CACHE_PATH")
String msLib = System.getenv("MSLIBS_CACHE_PATH").toString()
FileTree msLibTree = fileTree(dir: msLib, include: ["flatbuffers_*/bin/flatc"]) //flatbuffers_*/bin/flatc
String msLibPath = ''
msLibTree.each {File file ->

View File

@ -326,7 +326,9 @@ public class SyncFLJob {
int timeWindow = Integer.parseInt(args[11]);
boolean useElb = Boolean.parseBoolean(args[12]);
int serverNum = Integer.parseInt(args[13]);
String task = args[14];
boolean useHttps = Boolean.parseBoolean(args[14]);
String task = args[15];
FLParameter flParameter = FLParameter.getInstance();
LOGGER.info(Common.addTag("[args] trainDataset: " + trainDataset));
LOGGER.info(Common.addTag("[args] vocabFile: " + vocabFile));
@ -342,9 +344,11 @@ public class SyncFLJob {
LOGGER.info(Common.addTag("[args] timeWindow: " + timeWindow));
LOGGER.info(Common.addTag("[args] useElb: " + useElb));
LOGGER.info(Common.addTag("[args] serverNum: " + serverNum));
LOGGER.info(Common.addTag("[args] useHttps: " + useHttps));
LOGGER.info(Common.addTag("[args] task: " + task));
flParameter.setClientID(clientID);
flParameter.setUseHttps(useHttps);
SyncFLJob syncFLJob = new SyncFLJob();
if (task.equals("train")) {
flParameter.setTrainDataset(trainDataset);