sys.stderr.write("GTP engine ready\n")
sys.stderr.flush()
while not engine.disconnect:
inpt = input()
// handle either single lines at a time
// or multiple commands separated by "\n"
try:
cmd_list = inpt.split("\n")
except:
cmd_list = [inpt]
for cmd in cmd_list:
engine_reply = engine.send(cmd)
sys.stdout.write(engine_reply)
sys.stdout.flush()
def bootstrap(
working_dir: "tf.estimator working directory. If not set, defaults to a random tmp dir"=None,
model_save_path: "Where to export the first bootstrapped generation"=None):
if working_dir is None:
After Change
cgos_mode=cgos_mode,
kgs_mode=kgs_mode)
print("GTP engine ready\n", file=sys.stderr, flush=True)
for msg in sys.stdin:
if not engine.handle_msg(msg.strip()):
break
def bootstrap(
working_dir: "tf.estimator working directory. If not set, defaults to a random tmp dir"=None,
model_save_path: "Where to export the first bootstrapped generation"=None):
if working_dir is None: