summaryrefslogtreecommitdiff
path: root/nn/common/include/MetaModel.h
AgeCommit message (Collapse)Author
2019-10-16Add HAL version 1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandTypeLev Proleev
Bug: 139120468 Bug: 137828494 Test: NeuralNetworksTest_static and VtsHalNeuralnetworksV1_2TargetTest Change-Id: Ieaf5fe6387c890ff456c8cc8be6bae886936af36 Merged-In: Ieaf5fe6387c890ff456c8cc8be6bae886936af36 (cherry picked from commit 61c871c81b610a240d33ed84a30c14d13b470935)
2019-10-10Revert "Add HAL version 1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandType"Lev Proleev
This reverts commit af88effce1b911743d562f5490af2300c54f2349. Reason for revert: the topic breaks git_qt-dev-plus-aosp Change-Id: Iddfcffb76af61fb20d749902ddf9c960e211c69d
2019-10-09Add HAL version 1.3 and add TENSOR_QUANT8_ASYMM_SIGNED OperandTypeLev Proleev
Bug: 139120468 Bug: 137828494 Test: NeuralNetworksTest_static and VtsHalNeuralnetworksV1_2TargetTest Change-Id: Iefcaf09145753facb2dc58bbc48e1e597c658b7c Merged-In: Iefcaf09145753facb2dc58bbc48e1e597c658b7c (cherry picked from commit 61c871c81b610a240d33ed84a30c14d13b470935)
2019-07-30Fix names of #include guard symbols.David Gross
Subsequent discussion recommended "ANDROID_" prefix. Pattern: ANDROID_FRAMEWORKS_ML_${RELPATH}_H, where ${RELPATH} is relative to frameworks/ml, with "include" path component (if any) removed, everything in caps, and word breaks indicated by underscores (rather than by upper case). This is derived from our current practices in frameworks/ml. Generate name: ANDROID_FRAMEWORKS_ML_$(echo ${RELPATH} | sed -e 's!/include!!g' -e 's![/.]!_!g' -e 's!\([^_A-Z]\)\([A-Z]\)!\1_\2!g' | awk '{ print toupper($1); }') Bug: 129138718 Test: cd frameworks/ml ; mma Change-Id: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4 Merged-In: Ida001ba3767e8a6984e47b3570c69b1ba91f8bd4
2019-07-30Reorganize model slicing data structures: Replace IModelSlicer with MetaModelDavid Gross
The previous data structure organization employed an interface class IModelSlicer that was passed around along with a Model; a concretization of that class would manufacture and cache slices. The new data structure organization employs a concrete class MetaModel that that is passed around in place of a Model; this class exposes the original Model, and manufactures and caches slices. Previously, ANeuralNetworksModel_getSupportedOperationsForDevices() did not perform slicing; now it does. Also replace uses of std::ostrstream with std::ostringstream. Bug: 132378048 Test: NeuralNetworksTest_static (with debug.nn.strict-slicing 1) Test: NeuralNetworksTest_static_fuzzing --gtest_filter=TestRandomGraph/RandomGraphTest.* (with debug.nn.strict-slicing 1) Change-Id: Iff694b9c8391f601592729a248bff2adeba2332f Merged-In: Iff694b9c8391f601592729a248bff2adeba2332f (cherry picked from commit 12f2caf58b7c2928375ab84c8f742e49c37fe9ed)