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 911094e commit 6f560eaCopy full SHA for 6f560ea
exir/emit/test/test_emit.py
@@ -215,7 +215,7 @@ def forward(self, x):
215
return [((1, 3, 1.2), True, [x + x, x * x])]
216
217
ep = torch.export.export(M(), (torch.ones(2, 3),))
218
- res = ep(torch.ones(2, 3))
+ res = ep.module()(torch.ones(2, 3))
219
self.assertEqual(res[0][0], (1, 3, 1.2))
220
program = to_edge(ep).to_executorch().executorch_program
221
outputs = program.execution_plan[0].outputs
@@ -235,7 +235,7 @@ def forward(self, x, y, z):
235
return x + y, x + x, x + y + z
236
237
ep = torch.export.export(M(), (torch.ones(2, 3), 2, True))
238
- ep(torch.ones(2, 3), 2, True)
+ ep.module()(torch.ones(2, 3), 2, True)
239
240
inputs = program.execution_plan[0].inputs
241
self.assertEqual(len(inputs), 3)
0 commit comments