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

Function preprocess_binary

backends/qualcomm/utils/utils.py:879–883  ·  view source on GitHub ↗
(ctx_bin, compiler_specs)

Source from the content-addressed store, hash-verified

877 return ret
878
879 def preprocess_binary(ctx_bin, compiler_specs):
880 qnn_mgr = PyQnnManagerAdaptor.QnnManager(
881 generate_qnn_executorch_option(compiler_specs),
882 )
883 return bytes(qnn_mgr.MakeBinaryInfo(ctx_bin))
884
885 # dummy compiler spec would be fine, since we're not compiling
886 backend_options = generate_htp_compiler_spec(use_fp16=False)

Callers 1

from_context_binaryFunction · 0.70

Calls 1

Tested by

no test coverage detected