Vengineerの妄想(準備期間)

人生は短いけど、長いです。人生を楽しみましょう!

Android NNAPI vendor extensions



ソースコードを眺めていたら、NNAPI vendor extensionsなるものを見つけた。

NN API 1.0(Android 8.1)、1.1(Android 9)にはなかったもの。

引用
    In Android Q, Neural Networks API introduced vendor extensions 
    -- a better, more structured alternative to the OEM operation and data types. 

    An extension is a collection of vendor-defined operations and data types. 
    A driver can provide custom hardware-accelerated operations via NNAPI 1.2+ 
    by supporting corresponding vendor extensions.

    Note that extensions do not modify behavior of existing operations.

    TODO(pszczepaniak): Which apps can use vendor extensions?

    This document explains how to create and use extensions.

独自に拡張できるようになるんだね。。。