diff --git a/fleetrec/core/utils/envs.py b/fleetrec/core/utils/envs.py index 991ede19190d57f906d0d561cee01be929b935bd..69d723c76bc7353e7e9febdf8864c8b7ce0b2923 100644 --- a/fleetrec/core/utils/envs.py +++ b/fleetrec/core/utils/envs.py @@ -44,7 +44,7 @@ def flatten_environs(envs): def set_runtime_environs(environs): for k, v in environs.items(): - os.environ[k] = v + os.environ[k] = str(v) def get_runtime_environ(key): return os.getenv(key, None) diff --git a/readme.md b/readme.md index cf3e42130a394ce38a867ab56db6d7b00ad08dce..5beb6ea63254ef9024dfe798f871bf7d1f3a3fde 100644 --- a/readme.md +++ b/readme.md @@ -28,9 +28,7 @@ cd FleetRec python -m fleetrec.run \ -m fleetrec/examples/ctr-dnn_train.yaml \ - -e single \ - -ex fleetrec/examples/runtime.yaml - + -e single ``` ### 本地模拟分布式训练 @@ -40,9 +38,7 @@ cd FleetRec python -m fleetrec.run \ -m fleetrec/examples/ctr-dnn_train.yaml \ - -e local_cluster \ - -ex fleetrec/examples/runtime.yaml - + -e local_cluster ``` ### 集群提交分布式训练<需要用户预先配置好集群环境,本提交命令不包含提交客户端> @@ -52,9 +48,7 @@ cd FleetRec python -m fleetrec.run \ -m fleetrec/examples/ctr-dnn_train.yaml \ - -e cluster \ - -ex fleetrec/examples/runtime.yaml - + -e cluster ``` 更多用户文档及二次开发文档,敬请期待。 \ No newline at end of file