Fix more Windows issues (#9011)

Co-authored-by: Mehrdad <noreply@github.com>
This commit is contained in:
mehrdadn
2020-06-19 18:51:45 -07:00
committed by GitHub
co-authored by Mehrdad
parent f8d49d69c1
commit 981f67bfb0
11 changed files with 61 additions and 59 deletions
+2 -2
View File
@@ -95,7 +95,7 @@ class RunExperimentTest(unittest.TestCase):
return {"timesteps_this_iter": 1, "done": True}
def _save(self, path):
checkpoint = path + "/checkpoint"
checkpoint = os.path.join(path, "checkpoint")
with open(checkpoint, "w") as f:
f.write("OK")
return checkpoint
@@ -116,7 +116,7 @@ class RunExperimentTest(unittest.TestCase):
return {"timesteps_this_iter": 1, "done": True}
def _export_model(self, export_formats, export_dir):
path = export_dir + "/exported"
path = os.path.join(export_dir, "exported")
with open(path, "w") as f:
f.write("OK")
return {export_formats[0]: path}
@@ -1145,7 +1145,7 @@ class E2EPopulationBasedTestingSuite(unittest.TestCase):
return {"mean_accuracy": self.training_iteration}
def _save(self, path):
checkpoint = path + "/checkpoint"
checkpoint = os.path.join(path, "checkpoint")
with open(checkpoint, "w") as f:
f.write("OK")
return checkpoint