Move tf.test.is_gpu_available() to after session init (#6515)

* move to after session init

* script fixes
This commit is contained in:
Eric Liang
2019-12-17 14:55:39 -08:00
committed by GitHub
parent 4d71ab83cf
commit 2530eb90dc
2 changed files with 15 additions and 15 deletions
+3 -3
View File
@@ -26,14 +26,14 @@ Create them at https://github.com/settings/tokens/new
def run(access_token, prev_release_commit, curr_release_commit):
print("Writing commit descriptions to 'commits.txt'...")
check_output(
("'git log {prev_release_commit}..{curr_release_commit} "
(f"git log {prev_release_commit}..{curr_release_commit} "
f"--pretty=format:'%s' > commits.txt"),
shell=True)
# Generate command
cmd = []
cmd.append((f"git log {prev_release_commit}..{curr_release_commit} "
f"--pretty=format:'%s' "
f" | grep -Eo '#(\d+)'"))
f"--pretty=format:\"%s\" "
f" | grep -Eo \"#(\d+)\""))
joined = " && ".join(cmd)
cmd = f"bash -c '{joined}'"
cmd = shlex.split(cmd)