qai_hub.submit_link_job
- submit_link_job(models, device=None, name=None, options='')
Submits a link job.
A link job generates a context binary model from one or more input models. The input models must either be a QNN DLC model, or a context binary model that was produced with
qai_hub.submit_compile_job()
with the deprecated –qnn_bin_conversion_via_model_library option. This is particularly useful if the input models contain overlapping weights, since the weights will be shared between the graphs.To profile or inference a multi-graph QNN context binary, please use
--qnn_options context_enable_graphs=<graph name>
to select the graph.- Parameters:
models (
Union
[Model
,str
,Path
,None
,List
[Model
|str
|Path
|None
],list
[Model
]]) – Models to link. Each model in the list must be a QNN DLC model on an AI Hub compiled QNN context binary model.name (
Optional
[str
]) – Optional name for the job. Job names need not be unique.options (
str
) – Cli-like flag options. See Link Options.
- Returns:
job – Returns the link job.
- Return type: