summaryrefslogtreecommitdiff
path: root/nn/runtime/include/NeuralNetworks.h
diff options
context:
space:
mode:
authorMiao Wang <miaowang@google.com>2017-09-24 14:09:33 -0700
committerMiao Wang <miaowang@google.com>2017-09-24 14:12:41 -0700
commit3309c4645147c763b3437f7d9d69a8725dc7cd38 (patch)
tree76ca41e9f054fa08bc7dbb48d411650b0cfeeafe /nn/runtime/include/NeuralNetworks.h
parent874d039215516aebdaba2e242609199897fe80c0 (diff)
downloadml-3309c4645147c763b3437f7d9d69a8725dc7cd38.tar.gz
Fix documentation to use zeroPoint instead of offset or zero_value
Bug: 63905942 Test: mm Change-Id: I29350d80b7fff597601837870cded41788037cf3
Diffstat (limited to 'nn/runtime/include/NeuralNetworks.h')
-rw-r--r--nn/runtime/include/NeuralNetworks.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/nn/runtime/include/NeuralNetworks.h b/nn/runtime/include/NeuralNetworks.h
index 9e8ed58bb..4600b6b95 100644
--- a/nn/runtime/include/NeuralNetworks.h
+++ b/nn/runtime/include/NeuralNetworks.h
@@ -81,10 +81,10 @@ typedef enum {
* 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
- * - zero_value: an 32 bit integer
+ * - zeroPoint: an 32 bit integer
*
* The formula is:
- * real_value = (integer_value - zero_value) * scale.
+ * real_value = (integer_value - zeroPoint) * scale.
*/
ANEURALNETWORKS_TENSOR_QUANT8_ASYMM = 5,
} OperandCode;
@@ -307,7 +307,7 @@ typedef enum {
*
* The formula is:
*
- * output = (input - zero_value) * scale.
+ * output = (input - zeroPoint) * scale.
*
* Supported tensor types:
* * {@link ANEURALNETWORKS_TENSOR_QUANT8_ASYMM}
@@ -1174,7 +1174,7 @@ typedef struct ANeuralNetworksOperandType {
const uint32_t* dimensions;
/** These two fields are only used for quantized tensors.
* They should be zero for scalars and non-fixed point tensors.
- * The dequantized value of each entry is (value - offset) * scale.
+ * The dequantized value of each entry is (value - zeroPoint) * scale.
*/
float scale;
int32_t zeroPoint;