Skip to content

Commit cf3cf2f

Browse files
committed
[fix] minor fix
1 parent 074cf76 commit cf3cf2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ai_edge_torch/model.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ def export(self, path: str) -> None:
155155
Args:
156156
path: The path to file to which the model is serialized.
157157
"""
158-
if os.path.dirname(path) != '':
158+
if os.path.dirname(path):
159159
os.makedirs(os.path.dirname(path), exist_ok=True)
160160
with open(path, 'wb') as file_handle:
161161
file_handle.write(self._tflite_model)

0 commit comments

Comments
 (0)