(self)
| 54 | return result |
| 55 | |
| 56 | def setUp(self) -> None: |
| 57 | torch._dynamo.reset() |
| 58 | super().setUp() |
| 59 | recipe_registry.register_backend_recipe_provider(XNNPACKRecipeProvider()) |
| 60 | if is_supported_platform_for_coreml_lowering(): |
| 61 | from executorch.backends.apple.coreml.recipes import ( # pyre-ignore |
| 62 | CoreMLRecipeProvider, |
| 63 | ) |
| 64 | |
| 65 | # pyre-ignore |
| 66 | recipe_registry.register_backend_recipe_provider(CoreMLRecipeProvider()) |
| 67 | |
| 68 | if is_fbcode() and is_supported_platform_for_qnn_lowering(): |
| 69 | from executorch.backends.qualcomm.recipes import ( # pyre-ignore |
| 70 | QNNRecipeProvider, |
| 71 | ) |
| 72 | |
| 73 | # pyre-ignore |
| 74 | recipe_registry.register_backend_recipe_provider(QNNRecipeProvider()) |
| 75 | self.model = TestTargetRecipes.Model() |
| 76 | |
| 77 | def tearDown(self) -> None: |
| 78 | super().tearDown() |
nothing calls this directly
no test coverage detected