Home
last modified time | relevance | path

Searched refs:kExtensionTypeBits (Results 1 – 10 of 10) sorted by relevance

/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciDriver.cpp38 const uint32_t kTypeWithinExtensionMask = (1 << kExtensionTypeBits) - 1;
61 NN_RET_CHECK_EQ(operationType, (prefix << kExtensionTypeBits) | EXAMPLE_FIBONACCI); in isFibonacciOperation()
73 NN_RET_CHECK(inputType == ((prefix << kExtensionTypeBits) | EXAMPLE_INT64) || in validate()
75 NN_RET_CHECK(outputType == ((prefix << kExtensionTypeBits) | EXAMPLE_TENSOR_QUANT64_ASYMM) || in validate()
144 uint16_t prefix = static_cast<int32_t>(operationType) >> kExtensionTypeBits; in findOperation()
/packages/modules/NeuralNetworks/runtime/
DTypeManager.cpp235 uint16_t prefix = static_cast<uint32_t>(p.token) >> kExtensionTypeBits; in getExtensionNameAndPrefix()
253 *type = (prefix << kExtensionTypeBits) | typeWithinExtension; in getExtensionType()
267 uint16_t prefix = operandType >> kExtensionTypeBits; in getExtensionOperandTypeInfo()
268 uint16_t typeWithinExtension = operandType & ((1 << kExtensionTypeBits) - 1); in getExtensionOperandTypeInfo()
DModelBuilder.cpp993 addExtensionWithPrefix(static_cast<uint32_t>(operand.type) >> kExtensionTypeBits); in addExtensions()
998 addExtensionWithPrefix(static_cast<uint32_t>(operation.type) >> kExtensionTypeBits); in addExtensions()
DExecutionPlan.cpp71 uint16_t prefix = static_cast<uint32_t>(p.token) >> kExtensionTypeBits; in updateTokenFromMetaData()
/packages/modules/NeuralNetworks/common/
DUtilsTest.cpp70 int32_t type = (extensionPrefix << kExtensionTypeBits) | typeWithinExtension; in getExtensionType()
DLegacyUtils.cpp101 return (static_cast<uint32_t>(type) >> kExtensionTypeBits) != 0; in isExtensionOperandType()
105 return (static_cast<uint32_t>(type) >> kExtensionTypeBits) != 0; in isExtensionOperationType()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h67 constexpr uint8_t kExtensionTypeBits = 16; variable
DTypeUtils.h44 return static_cast<uint16_t>(type >> kExtensionTypeBits); in getExtensionPrefix()
/packages/modules/NeuralNetworks/tools/api/
DTypes.t308 * kExtensionPrefixBits bits is the extension prefix and the low kExtensionTypeBits bits
Dtypes.spec7398 * (1 << kExtensionTypeBits) is possible and should be interpreted
7614 * operand/operation. The low kExtensionTypeBits bits of the value correspond to the type ID within
7692 * than (1 << kExtensionTypeBits) should be interpreted
7711 * {@link kExtensionTypeBits} bits of the value correspond to the type ID
7798 constexpr uint8_t kExtensionTypeBits = 16;