MCPcopy Create free account
hub / github.com/pytorch/executorch / setUp

Method setUp

export/tests/test_target_recipes.py:56–75  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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()

Callers

nothing calls this directly

Calls 8

is_fbcodeFunction · 0.90
QNNRecipeProviderClass · 0.90
resetMethod · 0.45

Tested by

no test coverage detected