Skip to content

Update exporting_to_executorch.md #25

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 12 additions & 8 deletions docs/website/docs/tutorials/exporting_to_executorch.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,16 +72,20 @@ class MyModule(torch.nn.Module):

aten_dialect = exir.capture(MyModule(), (torch.randn(3, 4),))

print(aten_dialect.exported_program)
print(aten_dialect)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

exported_program does not exist as a property anymore

"""
ExportedProgram:
class GraphModule(torch.nn.Module):
def forward(self, arg0_1: f32[3, 4], arg1_1: f32[5, 4], arg2_1: f32[5], arg3_1: f32[3, 4]):
add: f32[3, 4] = torch.ops.aten.add.Tensor(arg3_1, arg0_1);
permute: f32[4, 5] = torch.ops.aten.permute_copy.default(arg1_1, [1, 0]);
addmm: f32[3, 5] = torch.ops.aten.addmm.default(arg2_1, add, permute);
clamp: f32[3, 5] = torch.ops.aten.clamp.default(addmm, 0.0, 1.0);
return (clamp,)
class GraphModule(torch.nn.Module):
def forward(self, arg0_1: f32[4, 4]):
# File: /Users/marksaroufim/Dev/zzz/test3.py:10, code: return self.linear(x)
_param_constant0 = self._param_constant0
t: f32[4, 4] = torch.ops.aten.t.default(_param_constant0); _param_constant0 = None
_param_constant1 = self._param_constant1
addmm: f32[4, 4] = torch.ops.aten.addmm.default(_param_constant1, arg0_1, t); _param_constant1 = arg0_1 = t = None
return [addmm]

Graph Signature: ExportGraphSignature(parameters=[], buffers=[], user_inputs=[], user_outputs=[], inputs_to_parameters={}, inputs_to_buffers={}, buffers_to_mutate={}, backward_signature=None, assertion_dep_token=None)
Symbol to range: {}
"""
```

Expand Down