From a82d39102af38725f72a415a69330f9304637f96 Mon Sep 17 00:00:00 2001 From: Miao Wang Date: Thu, 5 Apr 2018 16:27:00 -0700 Subject: [PATCH] Fix the spec for TENSOR_QUANT8_ASYMM to match our validation. - Scale of 0.0 is invalid for quantized tensor. Bug: 77236592 Test: mma Change-Id: I3a53d6303d8c964d451e17a3b1671de82d0ff335 --- current.txt | 2 +- neuralnetworks/1.0/types.hal | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/current.txt b/current.txt index 5aa62591f4..0d79272031 100644 --- a/current.txt +++ b/current.txt @@ -258,7 +258,7 @@ cf72ff5a52bfa4d08e9e1000cf3ab5952a2d280c7f13cdad5ab7905c08050766 android.hardwar fb92e2b40f8e9d494e8fd3b4ac18499a3216342e7cff160714c3bbf3660b6e79 android.hardware.gnss@1.0::IGnssConfiguration 251594ea9b27447bfa005ebd806e58fb0ae4aad84a69938129c9800ec0c64eda android.hardware.gnss@1.0::IGnssMeasurementCallback 4e7169919d24fbe5573e5bcd683d0bd7abf553a4e6c34c41f9dfc1e12050db07 android.hardware.gnss@1.0::IGnssNavigationMessageCallback -08ae9fc24f21f809e9b8501dfbc803662fcd6a8d8e1fb71d9dd7c0c4c6f5d556 android.hardware.neuralnetworks@1.0::types +1488db5ffb8a7979488d1084761aab8bca2f59bc9a02d75cdefc296afeaf591b android.hardware.neuralnetworks@1.0::types d4840db8efabdf1e4b344fc981cd36e5fe81a39aff6e199f6d06c1c8da413efd android.hardware.radio@1.0::types b280c4704dfcc548a9bf127b59b7c3578f460c50cce70a06b66fe0df8b27cff0 android.hardware.wifi@1.0::types diff --git a/neuralnetworks/1.0/types.hal b/neuralnetworks/1.0/types.hal index c97a00be84..a9c91cd46b 100644 --- a/neuralnetworks/1.0/types.hal +++ b/neuralnetworks/1.0/types.hal @@ -44,7 +44,7 @@ enum OperandType : int32_t { * * Attached to this tensor are two numbers that can be used to convert the * 8 bit integer to the real value and vice versa. These two numbers are: - * - scale: a 32 bit floating point value + * - scale: a 32 bit floating point value greater than zero * - zero_value: a 32 bit integer * * The formula is: