/frameworks/ml/nn/common/ |
D | ValidateHal.cpp | 74 static bool validateOperandExtraParams(const V1_2::Operand& operand, uint32_t index) { in validateOperandExtraParams() argument 75 switch (operand.type) { in validateOperandExtraParams() 88 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams() 91 << getOperandTypeName(operand.type) in validateOperandExtraParams() 92 << " has incorrect extraParams: " << toString(operand.extraParams); in validateOperandExtraParams() 95 NN_RET_CHECK(operand.extraParams.getDiscriminator() == in validateOperandExtraParams() 98 << getOperandTypeName(operand.type) << " without a Channel Quantization params"; in validateOperandExtraParams() 99 auto& channelQuant = operand.extraParams.channelQuant(); in validateOperandExtraParams() 101 size_t count = operand.dimensions.size(); in validateOperandExtraParams() 104 << getOperandTypeName(operand.type) in validateOperandExtraParams() [all …]
|
D | ExecutionBurstServer.cpp | 119 for (const auto& operand : outputShapes) { in serialize() local 122 info.isSufficient = operand.isSufficient; in serialize() 123 info.numberOfDimensions = static_cast<uint32_t>(operand.dimensions.size()); in serialize() 130 for (uint32_t dimension : operand.dimensions) { in serialize() 178 for (size_t operand = 0; operand < numberOfInputOperands; ++operand) { in deserialize() local 219 for (size_t operand = 0; operand < numberOfOutputOperands; ++operand) { in deserialize() local
|
D | Utils.cpp | 182 const Operand* operand = getInputOperand(index); in getInputShape() local 183 return {operand->type, operand->dimensions, operand->scale, operand->zeroPoint, in getInputShape() 184 operand->extraParams}; in getInputShape() 196 const Operand* operand = getOutputOperand(index); in getOutputShape() local 197 return {operand->type, operand->dimensions, operand->scale, operand->zeroPoint, in getOutputShape() 198 operand->extraParams}; in getOutputShape() 308 bool tensorHasUnspecifiedDimensions(const Operand& operand) { in tensorHasUnspecifiedDimensions() argument 309 return tensorHasUnspecifiedDimensions(static_cast<int>(operand.type), operand.dimensions.data(), in tensorHasUnspecifiedDimensions() 310 operand.dimensions.size()); in tensorHasUnspecifiedDimensions() 2079 bool compliantWithV1_0(const V1_2::Operand& operand) { in compliantWithV1_0() argument [all …]
|
/frameworks/ml/nn/runtime/test/fuzzing/ |
D | RandomGraphGenerator.cpp | 39 RandomOperand::RandomOperand(const OperandSignature& operand, Type dataType, uint32_t rank) in RandomOperand() argument 40 : type(operand.type), finalizer(operand.finalizer) { in RandomOperand() 42 if (operand.constructor) operand.constructor(dataType, rank, this); in RandomOperand() 143 static bool asConstant(const std::shared_ptr<RandomOperand>& operand, float prob = 0.5f) { in asConstant() argument 144 if (operand->type == RandomOperandType::CONST) return true; in asConstant() 145 if (operand->type != RandomOperandType::INPUT) return false; in asConstant() 147 if (kScalarDataType[static_cast<int32_t>(operand->dataType)]) return true; in asConstant() 175 for (auto& operand : mOperands) { in generateValue() local 176 if (operand->type == RandomOperandType::INPUT) numInputs++; in generateValue() 179 for (auto& operand : mOperands) { in generateValue() local [all …]
|
D | RandomGraphGeneratorUtils.cpp | 62 for (auto& operand : operands) dump(operand); in dump() local 71 for (auto& operand : operands) { in dump() local 72 if (operand->type == RandomOperandType::CONST || in dump() 73 operand->type == RandomOperandType::INTERNAL) { in dump() 76 os << " op" << operand->opIndex << ": ["; in dump() 77 dump(operand->dataType, reinterpret_cast<uint8_t*>(operand->buffer.data()), in dump() 78 operand->getNumberOfElements()); in dump()
|
/frameworks/ml/nn/runtime/ |
D | ModelBuilder.cpp | 109 Operand& operand = mOperands[index]; in setOperandValue() local 116 operand.lifetime = OperandLifeTime::NO_VALUE; in setOperandValue() 118 operand.location = {.poolIndex = 0, .offset = 0, .length = 0}; in setOperandValue() 120 if (TypeManager::get()->isTensorType(operand.type) && in setOperandValue() 121 tensorHasUnspecifiedDimensions(operand)) { in setOperandValue() 132 if (operand.type != OperandType::OEM) { in setOperandValue() 133 uint32_t neededLength = TypeManager::get()->getSizeOfData(operand); in setOperandValue() 144 operand.lifetime = OperandLifeTime::CONSTANT_COPY; in setOperandValue() 145 operand.location = { in setOperandValue() 147 memcpy(&mSmallOperandValues[operand.location.offset], buffer, valueLength); in setOperandValue() [all …]
|
D | ExecutionBuilder.cpp | 47 static bool checkDimensionInfo(const Operand& operand, const ANeuralNetworksOperandType* newType, in checkDimensionInfo() argument 51 if (isExtensionOperandType(operand.type)) { in checkDimensionInfo() 52 NN_RET_CHECK(TypeManager::get()->getExtensionOperandTypeInfo(operand.type, &info)); in checkDimensionInfo() 59 if (operand.dimensions.size() == 0) { in checkDimensionInfo() 62 if (operand.dimensions.size() != newType->dimensionCount) { in checkDimensionInfo() 67 if (operand.dimensions[i] != newType->dimensions[i] && operand.dimensions[i] != 0) { in checkDimensionInfo() 73 if (!allowUnspecified && TypeManager::get()->isTensorType(operand.type) && in checkDimensionInfo() 74 tensorHasUnspecifiedDimensions(operand)) { in checkDimensionInfo() 82 int ModelArgumentInfo::setFromPointer(const Operand& operand, in setFromPointer() argument 94 NN_RETURN_IF_ERROR(updateDimensionInfo(operand, type)); in setFromPointer() [all …]
|
D | TypeManager.h | 68 uint32_t getSizeOfData(const Operand& operand) const { in getSizeOfData() argument 69 return getSizeOfData(operand.type, operand.dimensions); in getSizeOfData()
|
D | ExecutionPlan.cpp | 286 const Operand& operand = fromModel.getOperand(fromOperandIndex); in addOperand() local 288 .type = static_cast<int32_t>(operand.type), in addOperand() 289 .dimensionCount = static_cast<uint32_t>(operand.dimensions.size()), in addOperand() 290 .dimensions = operand.dimensions.size() > 0 ? operand.dimensions.data() : nullptr, in addOperand() 291 .scale = operand.scale, in addOperand() 292 .zeroPoint = operand.zeroPoint, in addOperand() 301 n = copyOperandExtraParams(mSubModel, *toOperandIndex, operand); in addOperand() 308 switch (operand.lifetime) { in addOperand() 310 const uint8_t* data = fromModel.getPointerToOperandValue(operand.location.offset); in addOperand() 311 n = mSubModel.setOperandValue(*toOperandIndex, data, operand.location.length); in addOperand() [all …]
|
D | ExecutionBuilder.h | 64 int setFromPointer(const Operand& operand, const ANeuralNetworksOperandType* type, void* buffer, 66 int setFromMemory(const Operand& operand, const ANeuralNetworksOperandType* type, 68 int setFromTemporaryMemory(const Operand& operand, uint32_t poolIndex, uint32_t offset, 70 int updateDimensionInfo(const Operand& operand, const ANeuralNetworksOperandType* newType);
|
D | Manager.cpp | 203 const Operand& operand = hidlModel.operands[operandIndex]; in getSupportedOperations() local 204 accumulator ^= static_cast<uint32_t>(operand.type); in getSupportedOperations() 205 accumulator ^= operand.dimensions.size(); in getSupportedOperations() 206 for (uint32_t dimension : operand.dimensions) { in getSupportedOperations() 208 if (operand.lifetime == OperandLifeTime::CONSTANT_COPY || in getSupportedOperations() 209 operand.lifetime == OperandLifeTime::CONSTANT_REFERENCE) { in getSupportedOperations()
|
/frameworks/rs/rsov/compiler/spirit/ |
D | instructions.h | 42 inline uint16_t WordCount(const std::string &operand) { in WordCount() argument 43 return operand.length() / 4 + 1; in WordCount() 97 bool DeserializeExactlyOne(InputWordStream &IS, T *operand) { in DeserializeExactlyOne() argument 102 IS >> operand; in DeserializeExactlyOne() 104 mRemainingWordCount -= WordCount(*operand); in DeserializeExactlyOne() 110 bool DeserializeOptionallyOne(InputWordStream &IS, T **operand) { in DeserializeOptionallyOne() argument 114 *operand = new T(); in DeserializeOptionallyOne() 115 return DeserializeExactlyOne(IS, *operand); in DeserializeOptionallyOne()
|
D | generate.py | 194 for operand in operands: 195 type = operand['kind'] 201 quantifier = operand.get('quantifier') 202 comment = operand.get('name');
|
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/ |
D | InMatcher.java | 66 public static <T> Matcher<T> in(T... operand) { in in() argument 67 return new InMatcher<T>(operand); in in() 71 public static <T> Matcher<T> in(Collection<T> operand) { in in() argument 72 return new InMatcher<T>(operand); in in()
|
/frameworks/ml/nn/common/include/ |
D | Utils.h | 199 inline uint32_t nonExtensionOperandSizeOfData(const Operand& operand) { in nonExtensionOperandSizeOfData() argument 200 return nonExtensionOperandSizeOfData(operand.type, operand.dimensions); in nonExtensionOperandSizeOfData() 220 bool tensorHasUnspecifiedDimensions(const Operand& operand); 318 bool compliantWithV1_0(const V1_2::Operand& operand); 400 V1_0::Operand convertToV1_0(const V1_2::Operand& operand); 402 V1_2::Operand convertToV1_2(const V1_0::Operand& operand); 403 V1_2::Operand convertToV1_2(const V1_2::Operand& operand);
|
D | CpuExecutor.h | 253 inline size_t NumDimensions(const RunTimeOperandInfo *operand) { in NumDimensions() argument 254 return operand->shape().dimensions.size(); in NumDimensions() 257 inline uint32_t SizeOfDimension(const RunTimeOperandInfo *operand, int i) { in SizeOfDimension() argument 258 return operand->shape().dimensions[i]; in SizeOfDimension()
|
D | ValidateHal.h | 56 bool validOperandType(V1_0::OperandType operand); 57 bool validOperandType(V1_2::OperandType operand);
|
/frameworks/ml/nn/common/operations/ |
D | Multinomial.cpp | 36 inline T* GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer() argument 37 return reinterpret_cast<T*>(operand->buffer); in GetBuffer() 41 inline const T* GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer() argument 42 return reinterpret_cast<const T*>(operand->buffer); in GetBuffer()
|
D | BidirectionalSequenceLSTM.cpp | 32 inline T* GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer() argument 33 return reinterpret_cast<T*>(operand->buffer); in GetBuffer() 37 inline const T* GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer() argument 38 return reinterpret_cast<const T*>(operand->buffer); in GetBuffer() 42 inline const T* GetOptionalBuffer(const RunTimeOperandInfo* operand) { in GetOptionalBuffer() argument 43 return !IsNullInput(operand) ? reinterpret_cast<const T*>(operand->buffer) : nullptr; in GetOptionalBuffer()
|
D | QuantizedLSTM.cpp | 33 inline T* GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer() argument 34 return reinterpret_cast<T*>(operand->buffer); in GetBuffer() 38 inline const T* GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer() argument 39 return reinterpret_cast<const T*>(operand->buffer); in GetBuffer()
|
/frameworks/ml/nn/extensions/ |
D | README.md | 75 An extension operation may use any operand types, including non-extension 76 operand types and operand types from other extensions. In the latter case, 111 To build a model with an extension operand, use 112 `ANeuralNetworksModel_getExtensionOperandType` to obtain the operand type. 127 associate additional data with an extension operand. 173 When handling operation and operand types, the driver must check the 185 Extension operands may have associated data in `operand.extraParams.extension`,
|
/frameworks/ml/nn/tools/test_generator/ |
D | cts_generator.py | 199 for operand in operands: 201 typedMap[operand.type.type].append(FeedAndGet(operand, feedDict)) 203 operand.index, GetJointStr(operand.dimensions))) 206 sys.exit("Cannot dump tensor of type {}".format(operand.type.type))
|
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/ |
D | LockFindingClassVisitor.java | 129 BasicValue operand = (BasicValue) f.getStack(f.getStackSize() - 1); in visitEnd() local 130 if (operand instanceof LockTargetState) { in visitEnd() 131 LockTargetState state = (LockTargetState) operand; in visitEnd() 143 BasicValue operand = (BasicValue) f.getStack(f.getStackSize() - 1); in visitEnd() local 144 if (operand instanceof LockTargetState) { in visitEnd() 145 LockTargetState state = (LockTargetState) operand; in visitEnd()
|
/frameworks/ml/nn/tools/ |
D | sync_enums_to_hal.py | 234 operand = [] variable 237 operand.append(line) 238 types10.sections[types10.OPERAND] = operand
|
/frameworks/base/services/core/java/com/android/server/notification/ |
D | ValidateNotificationPeople.java | 531 public void applyChangesLocked(NotificationRecord operand) { in applyChangesLocked() argument 532 float affinityBound = operand.getContactAffinity(); in applyChangesLocked() 533 operand.setContactAffinity(Math.max(mContactAffinity, affinityBound)); in applyChangesLocked() 534 if (VERBOSE) Slog.i(TAG, "final affinity: " + operand.getContactAffinity()); in applyChangesLocked()
|