setBackend

fun setBackend(index: Int)

Selects a backend returned by getBackendCount and getBackendName. Must be called before openModelFile. HTP (QNN) accepts only .qnn; explicitly selected CPU/GPU backends reject .qnn. Without a selection, the model format determines the backend.