Skip to content
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

executorch/test/models #7387

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
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
6 changes: 4 additions & 2 deletions test/models/export_delegated_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ def __init__(self, fn):
def forward(self, *args, **kwargs):
return self.fn(*args, **kwargs)

exported_program = export(WrapperModule(getattr(eager_module, method)), args=inputs)
exported_program = export(
WrapperModule(getattr(eager_module, method)), args=inputs, strict=True
)

edge_config = EdgeCompileConfig(_check_ir_validity=False)
et_config = exir.ExecutorchBackendConfig(
Expand Down Expand Up @@ -167,7 +169,7 @@ def forward(self, *args, **kwargs):
composite_module(*inputs)

executorch_program = to_edge(
export(composite_module, args=inputs)
export(composite_module, args=inputs, strict=True)
).to_executorch(config=et_config)

return executorch_program.buffer
Expand Down
2 changes: 1 addition & 1 deletion test/models/generate_linear_out_bundled_program.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def main() -> None:
trace_inputs = (torch.ones(2, 2, dtype=torch.float),)

# Trace to FX Graph.
exec_prog = to_edge(export(model, trace_inputs)).to_executorch(
exec_prog = to_edge(export(model, trace_inputs, strict=True)).to_executorch(
config=ExecutorchBackendConfig(
memory_planning_pass=MemoryPlanningPass(),
to_out_var_pass=ToOutVarPass(),
Expand Down
Loading