Skip to content

Commit 40bd56a

Browse files
committed
Minor Change
1 parent 977fcb5 commit 40bd56a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

graph_net/torch/graph_variable_renamer.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,9 @@ def __call__(self, rel_model_path):
8585
dst_model_path = os.path.realpath(
8686
os.path.join(self.config["output_dir"], rel_model_path)
8787
)
88-
if self.config["resume"] and os.path.exists(dst_model_path):
88+
if self.config["resume"] and os.path.exists(
89+
os.path.join(dst_model_path, "model.py")
90+
):
8991
return
9092
Path(dst_model_path).parent.mkdir(parents=True, exist_ok=True)
9193
temp_dir = tempfile.mkdtemp(prefix="graph_variable_renamer_")

0 commit comments

Comments
 (0)