JDAI-CV / DNNLibrary

Daquexian's NNAPI Library. ONNX + Android NNAPI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Operation decomposition should be done in ModelBuilder

daquexian opened this issue · comments

Some operations in DNNLibrary are indeed composited by several nnapi operations

e.g.,
dilated convolution = space to batch -> convolution -> batch to space
prelu -> relu + (mul -> relu -> mul).

The decomposition is now done in OnnxConverter, however, many of these operations are supported directly by nnapi in Android Q. As a result, the decomposition should be done in ModelBuilder on-the-fly in order to choose the best interpretation of these ops.