丁云鹏 hace 6 meses
padre
commit
10a42b45b7

+ 1 - 1
recommend-model-produce/src/main/python/tools/static_ps_trainer_v2.py

@@ -337,7 +337,7 @@ if __name__ == "__main__":
     paddle.enable_static()
 
     read_env_flags = [
-        key[len(flag_prefix) :]
+        key[len("FLAGS_") :]
         for key in core.globals().keys()
         if key.startswith("FLAGS_")
     ]