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

Method setUpClass

backends/qualcomm/tests/utils.py:226–249  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

224
225 @classmethod
226 def setUpClass(cls):
227 if not cls.enable_x86_64 and not cls.compile_only:
228 qnn_config = QnnConfig(
229 backend=cls.backend,
230 target=cls.target,
231 build_folder=cls.build_folder,
232 device=cls.device,
233 host=cls.host,
234 soc_model=cls.soc_model,
235 direct_build_folder=cls.direct_build_folder,
236 )
237
238 # init device once
239 adb = SimpleADB(
240 qnn_config=qnn_config,
241 pte_path=[],
242 workspace="/data/local/tmp/qnn_executorch_test",
243 error_only=cls.error_only,
244 )
245
246 adb.push(
247 backends={get_backend_type(cls.backend)},
248 init_env=True,
249 )
250
251 def _assert_outputs_equal(self, model_output, ref_output):
252 self.assertTrue(len(ref_output) == len(model_output))

Callers

nothing calls this directly

Calls 4

pushMethod · 0.95
QnnConfigClass · 0.90
SimpleADBClass · 0.90
get_backend_typeFunction · 0.90

Tested by

no test coverage detected