fea16a21b0381dbb09038da2d1a9a0dcea377a28,tensorforce/examples/async_helper.py,,main,#,24
Before Change
cmds = ""
for i in xrange(args.num_workers):
cmds += "python openai_gym_async.py Pong-ram-v0 -c examples/configs/vpg_agent.json -n examples/configs/vpg_network.json" \
" -w " + str(args.num_workers) + " -i" + str(i) + " -p 0 && "
// add one PS call
cmds += "python openai_gym_async.py Pong-ram-v0 -c examples/configs/vpg_agent.json -n examples/configs/vpg_network.json" \
After Change
args = parser.parse_args()
this_dir = os.path.dirname(os.path.abspath(inspect.stack()[0][1]))
target_script = os.path.join(this_dir, "openai_gym_async.py")
def build_cmd(index, parameter_server):
cmd_args = [sys.executable, target_script,
args.gym_id,
"--agent-config", os.path.join(os.getcwd(), args.agent_config),
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances
Project Name: reinforceio/tensorforce
Commit Name: fea16a21b0381dbb09038da2d1a9a0dcea377a28
Time: 2017-03-07
Author: k@ifricke.com
File Name: tensorforce/examples/async_helper.py
Class Name:
Method Name: main
Project Name: markovmodel/PyEMMA
Commit Name: b7663daf8b010e526abcd06a89341221e642a14d
Time: 2019-05-13
Author: m.scherer@fu-berlin.de
File Name: setup.py
Class Name:
Method Name: extensions
Project Name: regel/loudml
Commit Name: e7e01290997f66471c08848ee0a968e2526b4b9b
Time: 2019-09-29
Author: sebastien.regel@gmail.com
File Name: loudml/loudml/_version.py
Class Name:
Method Name: