platform_hardware_interfaces/neuralnetworks
Xusong Wang b61ba1ed0b Fix caching interface according to vendor feedback.
- Instead of isCachingSupport returning a single boolean, switch to
  getNumberOfCacheFilesNeeded returning the number of cache files. This
  is to support use cases when driver needs more than one cache file for
  each type, or when driver does not need data cache.

- Instead of a separate saveToCache, pass cache info along with
  prepareModel_1_2 to save into cache as well as perform compilation.
  This is to avoid a potential additional copy of cache files.

Bug: 123780248
Test: VtsHalNeuralnetworksV1_xTargetTest with 1.2 sample driver
Test: VtsHalNeuralnetworksV1_xTargetTest with a test driver that can
      read and write cache entries
Change-Id: I921b7b8ccc3c66af19f6589f7213c6870d6f07bf
2019-03-21 14:17:08 -07:00
..
1.0 Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00
1.1 Fix the documentation about paddings for SPACE_TO_BATCH_ND 2019-03-12 15:08:08 -07:00
1.2 Fix caching interface according to vendor feedback. 2019-03-21 14:17:08 -07:00
README Add README to NeuralNetworks HAL 2018-03-05 12:59:35 -08:00
TEST_MAPPING Add presubmit tests to NNAPI -- hardware/interfaces/neuralnetworks 2019-02-19 12:04:24 -08:00

NeuralNetworks sample driver implementation is located at
frameworks/ml/nn/driver/sample.