diff options
author | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2018-11-08 14:56:06 +0000 |
---|---|---|
committer | Przemyslaw Szczepaniak <pszczepaniak@google.com> | 2018-12-28 13:33:49 +0000 |
commit | 20aa79ee9d9ceb812550f48215d53d2ac30b4e1e (patch) | |
tree | 2992273343d7f46f933713910cde534aed766492 /nn/runtime/test/TestNeuralNetworksWrapper.h | |
parent | 0ae772a50c5291ac23ea7394ca882efec581fa6a (diff) | |
download | ml-20aa79ee9d9ceb812550f48215d53d2ac30b4e1e.tar.gz |
Add TENSOR_QUANT8_SYMM_PER_CHANNEL to operand types.
Added 'ExtraParams' union to ANeuralNetworksOperandType.
ANeuralNetworksOperandType::ExtraParams contains various supplementary
parameters for operand types added in API Level 29 or later.
To allow backwards compatibility with code compiled against earlier NDKs,
ANeuralNetworksOperandType.extraParams is ignored for all operand types
introduced before API Level 29.
TENSOR_QUANT8_SYMM_PER_CHANNEL must see a
ANeuralNetworksOperandParamsChannelQuant value in extraParams union.
Bug: 119249581
Test: NeuralNetworksTest_static
Test: VtsHalNeuralnetworksV1_0TargetTest
Test: VtsHalNeuralnetworksV1_1TargetTest
Test: VtsHalNeuralnetworksV1_2TargetTest
Change-Id: I8b22098f2c14a5cd0176429c8bb16ce52f58af99
Merged-In: I8b22098f2c14a5cd0176429c8bb16ce52f58af99
(cherry picked from commit b3c96e6a950930ad0acedf3daaa8caa62baf4001)
Diffstat (limited to 'nn/runtime/test/TestNeuralNetworksWrapper.h')
-rw-r--r-- | nn/runtime/test/TestNeuralNetworksWrapper.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/nn/runtime/test/TestNeuralNetworksWrapper.h b/nn/runtime/test/TestNeuralNetworksWrapper.h index 6110e5c71..9e58abe2c 100644 --- a/nn/runtime/test/TestNeuralNetworksWrapper.h +++ b/nn/runtime/test/TestNeuralNetworksWrapper.h @@ -41,6 +41,7 @@ enum class Type { TENSOR_FLOAT16 = ANEURALNETWORKS_TENSOR_FLOAT16, TENSOR_BOOL8 = ANEURALNETWORKS_TENSOR_BOOL8, FLOAT16 = ANEURALNETWORKS_FLOAT16, + TENSOR_QUANT8_SYMM_PER_CHANNEL = ANEURALNETWORKS_TENSOR_QUANT8_SYMM_PER_CHANNEL, }; enum class ExecutePreference { |