Skip to content

Commit 0d2a804

Browse files
gmagogsfmfacebook-github-bot
authored andcommitted
executorch/extension/pybindings/test
Reviewed By: avikchaudhuri Differential Revision: D67383768
1 parent b0bf9aa commit 0d2a804

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

extension/pybindings/test/make_test.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ def forward(self, *args, **kwargs):
113113
# variant, along with some other transformations.
114114
for method_name, method_input in input_map.items():
115115
wrapped_mod = WrapperModule(getattr(eager_module, method_name))
116-
exported_methods[method_name] = export(wrapped_mod, method_input)
116+
exported_methods[method_name] = export(wrapped_mod, method_input, strict=True)
117117

118118
exec_prog = to_edge(exported_methods).to_executorch(config=et_config)
119119

@@ -136,7 +136,6 @@ def make_test( # noqa: C901
136136
load_fn: Callable = runtime._load_for_executorch_from_buffer
137137

138138
def wrapper(tester: unittest.TestCase) -> None:
139-
140139
######### TEST CASES #########
141140

142141
def test_e2e(tester):
@@ -154,7 +153,6 @@ def test_e2e(tester):
154153
tester.assertEqual(str(expected), str(executorch_output))
155154

156155
def test_multiple_entry(tester):
157-
158156
program, inputs = create_program(ModuleMulti())
159157
executorch_module = load_fn(program.buffer)
160158

@@ -268,7 +266,7 @@ def test_quantized_ops(tester):
268266
)
269267
m = _convert_to_reference_decomposed_fx(m)
270268
config = EdgeCompileConfig(_check_ir_validity=False)
271-
m = to_edge(export(m, example_inputs), compile_config=config)
269+
m = to_edge(export(m, example_inputs, strict=True), compile_config=config)
272270
m = m.transform([QuantFusionPass(_fix_node_meta_val=True)])
273271

274272
exec_prog = m.to_executorch()

0 commit comments

Comments
 (0)