Skip to content

Commit a6a7162

Browse files
committed
Fix test
1 parent 2230f91 commit a6a7162

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

extension/llm/export/builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ def export(self) -> "LLMEdgeManager":
203203
dynamic_shapes=dynamic_shape,
204204
)
205205
self.pre_autograd_graph_module = exported_module.module()
206-
if self.args.export_only:
206+
if hasattr(self.args, "export_only") and self.args.export_only:
207207
torch.export.save(exported_module, self.args.output_name)
208208

209209
return self

0 commit comments

Comments
 (0)