Created by: ccmeteorljh
在不同的Strategy中设置的同步异步,有的属性是async_mode 有的是sync_mode,容易弄错
build_strategy = fluid.BuildStrategy()
build_strategy.async_mode = False
strategy = DistributeTranspilerConfig()
strategy.sync_mode = bool(int(os.getenv("DISTRIBUTED_SYNC_MODE")))