We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2230f91 commit a6a7162Copy full SHA for a6a7162
extension/llm/export/builder.py
@@ -203,7 +203,7 @@ def export(self) -> "LLMEdgeManager":
203
dynamic_shapes=dynamic_shape,
204
)
205
self.pre_autograd_graph_module = exported_module.module()
206
- if self.args.export_only:
+ if hasattr(self.args, "export_only") and self.args.export_only:
207
torch.export.save(exported_module, self.args.output_name)
208
209
return self
0 commit comments