Skip to content

Commit 52c949f

Browse files
Update solver.py (#831)
修改osp.isdir为len
1 parent 11b625f commit 52c949f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ppsci/solver/solver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ def export(
744744
)
745745

746746
# save static graph model to disk
747-
if osp.isdir(osp.dirname(export_path)):
747+
if len(osp.dirname(export_path)):
748748
os.makedirs(osp.dirname(export_path), exist_ok=True)
749749
try:
750750
jit.save(static_model, export_path)

0 commit comments

Comments
 (0)