Unverified Commit 4f7d016d authored by eltonzheng's avatar eltonzheng Committed by GitHub
Browse files

remove the undefined variable in ckpt testing (#67)

parent f78ccc06
...@@ -106,12 +106,7 @@ class GPT2CheckpointTestCase(BaseTestCase): ...@@ -106,12 +106,7 @@ class GPT2CheckpointTestCase(BaseTestCase):
try: try:
cmd = f"rm -rf {checkpoint_name}" cmd = f"rm -rf {checkpoint_name}"
print(f"{self.id()} cmd: {cmd}") print(f"{self.id()} cmd: {cmd}")
subprocess.run(cmd, subprocess.run(cmd, shell=True, check=False, executable='/bin/bash')
shell=True,
check=False,
executable='/bin/bash',
stdout=f,
stderr=f)
except: except:
print("No old checkpoint") print("No old checkpoint")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment