From 4b9d2528349f82cc4ee9483f78ef7f0f146afb2b Mon Sep 17 00:00:00 2001 From: Ali Afzal Date: Tue, 17 Mar 2026 16:08:59 -0700 Subject: [PATCH] Remove stale run_and_compare parameter from test calls (#18251) Summary: `export_and_run_model` no longer accepts a `run_and_compare` parameter, but `test_add_op.py` and `test_g3_ops.py` were still passing it. This removes the stale keyword argument to match the current API. Differential Revision: D96985349 --- examples/cadence/operators/test_add_op.py | 4 ++-- examples/cadence/operators/test_g3_ops.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/cadence/operators/test_add_op.py b/examples/cadence/operators/test_add_op.py index 8089fe3a6b1..0d07103ca40 100644 --- a/examples/cadence/operators/test_add_op.py +++ b/examples/cadence/operators/test_add_op.py @@ -65,7 +65,7 @@ def forward(self, x: torch.Tensor, y: torch.Tensor): model.eval() export_and_run_model( - model, (X, Y), file_name=self._testMethodName, run_and_compare=False + model, (X, Y), file_name=self._testMethodName ) # pyre-fixme[16]: Module `parameterized.parameterized` has no attribute `expand`. @@ -115,7 +115,7 @@ def forward(self, x: torch.Tensor, y: float): model.eval() export_and_run_model( - model, (X, Y), file_name=self._testMethodName, run_and_compare=False + model, (X, Y), file_name=self._testMethodName ) diff --git a/examples/cadence/operators/test_g3_ops.py b/examples/cadence/operators/test_g3_ops.py index b096399c1a6..5f31f458399 100644 --- a/examples/cadence/operators/test_g3_ops.py +++ b/examples/cadence/operators/test_g3_ops.py @@ -17,7 +17,7 @@ class ATenOpTestCases(unittest.TestCase): def run_and_verify(self, model: nn.Module, inputs: Tuple[Any, ...]) -> None: model.eval() export_and_run_model( - model, inputs, file_name=self._testMethodName, run_and_compare=False + model, inputs, file_name=self._testMethodName ) # pyre-ignore[16]: Module `parameterized.parameterized` has no attribute `expand`.