diff options
author | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-10 01:18:04 +0000 |
---|---|---|
committer | android-build-team Robot <android-build-team-robot@google.com> | 2020-07-10 01:18:04 +0000 |
commit | cf9e63da513abcc88a39ef6fc492468ea377f2ac (patch) | |
tree | e670787d3ce5016bef9198ab79a97a25a0620403 | |
parent | ef50eee4cadd1a25813771da0213ad06397d30f4 (diff) | |
parent | c637d993570cbc22e8c72894c02f8172243a2afe (diff) | |
download | ml-android-cts-11.0_r1.tar.gz |
Snap for 6668007 from c637d993570cbc22e8c72894c02f8172243a2afe to rvc-releaseandroid-vts-11.0_r1android-security-11.0.0_r63android-security-11.0.0_r62android-security-11.0.0_r61android-security-11.0.0_r60android-security-11.0.0_r59android-security-11.0.0_r58android-security-11.0.0_r57android-security-11.0.0_r56android-security-11.0.0_r55android-security-11.0.0_r54android-security-11.0.0_r53android-security-11.0.0_r52android-security-11.0.0_r51android-security-11.0.0_r50android-security-11.0.0_r49android-security-11.0.0_r1android-cts-11.0_r1android-11.0.0_r5android-11.0.0_r4android-11.0.0_r3android-11.0.0_r25android-11.0.0_r2android-11.0.0_r17android-11.0.0_r1android11-s1-releaseandroid11-release
Change-Id: If0ab476175fb1079b8e212da5130d18497225e29
-rw-r--r-- | nn/runtime/include/NeuralNetworks.h | 16 | ||||
-rw-r--r-- | nn/tools/api/NeuralNetworks.t | 16 |
2 files changed, 26 insertions, 6 deletions
diff --git a/nn/runtime/include/NeuralNetworks.h b/nn/runtime/include/NeuralNetworks.h index 2f7d3b38e..1eb2f5466 100644 --- a/nn/runtime/include/NeuralNetworks.h +++ b/nn/runtime/include/NeuralNetworks.h @@ -6230,11 +6230,21 @@ typedef struct ANeuralNetworksOperandType { const uint32_t* dimensions; /** - * These two fields are only used for quantized tensors. - * They must be zero for all other types. - * The dequantized value of each entry is (value - zeroPoint) * scale. + * The quantization scale. + * + * Must be 0 when not applicable to an operand type. + * + * See {@link OperandCode}. */ float scale; + + /** + * The quantization zero point. + * + * Must be 0 when not applicable to an operand type. + * + * See {@link OperandCode}. + */ int32_t zeroPoint; } ANeuralNetworksOperandType; diff --git a/nn/tools/api/NeuralNetworks.t b/nn/tools/api/NeuralNetworks.t index a6ab569cd..d7cf8b2d0 100644 --- a/nn/tools/api/NeuralNetworks.t +++ b/nn/tools/api/NeuralNetworks.t @@ -656,11 +656,21 @@ typedef struct ANeuralNetworksOperandType { const uint32_t* dimensions; /** - * These two fields are only used for quantized tensors. - * They must be zero for all other types. - * The dequantized value of each entry is (value - zeroPoint) * scale. + * The quantization scale. + * + * Must be 0 when not applicable to an operand type. + * + * See {@link OperandCode}. */ float scale; + + /** + * The quantization zero point. + * + * Must be 0 when not applicable to an operand type. + * + * See {@link OperandCode}. + */ int32_t zeroPoint; } ANeuralNetworksOperandType; |