Skip to content

Most visited

Recently visited


ANeuralNetworksOperandType Struct Reference

ANeuralNetworksOperandType Struct Reference

#include <NeuralNetworks.h>

Data Fields

int32_t type
uint32_t dimensionCount
const uint32_t * dimensions
float scale
int32_t zeroPoint

Detailed Description

ANeuralNetworksOperandType describes the type of an operand. This structure is used to describe both scalars and tensors.

Field Documentation

◆ dimensionCount

uint32_t dimensionCount

The number of dimensions. It should be 0 for scalars.

◆ dimensions

const uint32_t* dimensions

The dimensions of the tensor. It should be nullptr for scalars.

◆ scale

float scale

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 - zeroPoint) * scale.

◆ type

int32_t type

The data type, e.g ANEURALNETWORKS_INT8.

◆ zeroPoint

int32_t zeroPoint

The documentation for this struct was generated from the following file:
This site uses cookies to store your preferences for site-specific language and display options.

Get the latest Android developer news and tips that will help you find success on Google Play.

* Required Fields


Follow Google Developers on WeChat

Browse this site in ?

You requested a page in , but your language preference for this site is .

Would you like to change your language preference and browse this site in ? If you want to change your language preference later, use the language menu at the bottom of each page.

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a short survey?
Help us improve the Android developer experience. (April 2018 — Developer Survey)