Home
last modified time | relevance | path

Searched refs:operand (Results 1 – 25 of 26) sorted by relevance

12

/frameworks/ml/nn/common/
DValidateHal.cpp62 for (auto& operand : operands) { in validateOperands() local
64 switch (operand.type) { in validateOperands()
69 size_t count = operand.dimensions.size(); in validateOperands()
81 if (operand.dimensions.size() == 0) { in validateOperands()
89 << toString(operand.type); in validateOperands()
99 switch (operand.type) { in validateOperands()
104 if (operand.scale != 0.f) { in validateOperands()
106 << getOperandTypeName(operand.type) << " with a non-zero scale (" in validateOperands()
107 << operand.scale << ")"; in validateOperands()
113 if (operand.scale < 0.f) { in validateOperands()
[all …]
/frameworks/ml/nn/runtime/
DModelBuilder.cpp84 Operand& operand = mOperands[index]; in setOperandValue() local
91 operand.lifetime = OperandLifeTime::NO_VALUE; in setOperandValue()
93 operand.location = {.poolIndex = 0, in setOperandValue()
103 uint32_t neededLength = sizeOfData(operand.type, operand.dimensions); in setOperandValue()
104 if (operand.type != OperandType::OEM && neededLength != valueLength) { in setOperandValue()
113 operand.lifetime = OperandLifeTime::CONSTANT_COPY; in setOperandValue()
114 operand.location = { in setOperandValue()
116 memcpy(&mSmallOperandValues[operand.location.offset], buffer, valueLength); in setOperandValue()
117 VLOG(MODEL) << "Copied small value to offset " << operand.location.offset; in setOperandValue()
120 operand.lifetime = OperandLifeTime::CONSTANT_REFERENCE; in setOperandValue()
[all …]
DExecutionBuilder.cpp35 int ModelArgumentInfo::setFromPointer(const Operand& operand, in setFromPointer() argument
47 int n = updateDimensionInfo(operand, type); in setFromPointer()
51 uint32_t neededLength = sizeOfData(operand.type, dimensions); in setFromPointer()
52 if (operand.type != OperandType::OEM && neededLength != length) { in setFromPointer()
64 int ModelArgumentInfo::setFromMemory(const Operand& operand, const ANeuralNetworksOperandType* type, in setFromMemory() argument
66 int n = updateDimensionInfo(operand, type); in setFromMemory()
70 uint32_t neededLength = sizeOfData(operand.type, dimensions); in setFromMemory()
71 if (operand.type != OperandType::OEM && neededLength != length) { in setFromMemory()
83 int ModelArgumentInfo::setFromTemporaryMemory(const Operand& operand, in setFromTemporaryMemory() argument
85 int n = updateDimensionInfo(operand, nullptr); in setFromTemporaryMemory()
[all …]
DManager.cpp107 const Operand& operand = hidlModel.operands[operandIndex]; in getSupportedOperations() local
108 accumulator ^= static_cast<uint32_t>(operand.type); in getSupportedOperations()
109 accumulator ^= operand.dimensions.size(); in getSupportedOperations()
110 for (uint32_t dimension : operand.dimensions) { in getSupportedOperations()
112 if (operand.lifetime == OperandLifeTime::CONSTANT_COPY || in getSupportedOperations()
113 operand.lifetime == OperandLifeTime::CONSTANT_REFERENCE) { in getSupportedOperations()
DExecutionPlan.cpp152 const Operand& operand = fromModel.getOperand(fromOperandIndex); in addOperand() local
154 .type = static_cast<int32_t>(operand.type), in addOperand()
155 .dimensionCount = static_cast<uint32_t>(operand.dimensions.size()), in addOperand()
156 .dimensions = operand.dimensions.size() > 0 ? operand.dimensions.data() : nullptr, in addOperand()
157 .scale = operand.scale, in addOperand()
158 .zeroPoint = operand.zeroPoint in addOperand()
167 switch (operand.lifetime) { in addOperand()
169 const uint8_t* data = fromModel.getPointerToOperandValue(operand.location.offset); in addOperand()
170 n = mSubModel.setOperandValue(*toOperandIndex, data, operand.location.length); in addOperand()
177 const Memory* memory = fromModel.getMemories()[operand.location.poolIndex]; in addOperand()
[all …]
DExecutionBuilder.h58 int setFromPointer(const Operand& operand, const ANeuralNetworksOperandType* type, void* buffer,
60 int setFromMemory(const Operand& operand, const ANeuralNetworksOperandType* type,
62 int setFromTemporaryMemory(const Operand& operand, uint32_t poolIndex, uint32_t offset);
63 int updateDimensionInfo(const Operand& operand, const ANeuralNetworksOperandType* newType);
/frameworks/rs/rsov/compiler/spirit/
Dinstructions.h42 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()
Dgenerate.py194 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/
DInMatcher.java66 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/
DCpuExecutor.h203 inline size_t NumDimensions(const RunTimeOperandInfo *operand) { in NumDimensions() argument
204 return operand->shape().dimensions.size(); in NumDimensions()
207 inline uint32_t SizeOfDimension(const RunTimeOperandInfo *operand, int i) { in SizeOfDimension() argument
208 return operand->shape().dimensions[i]; in SizeOfDimension()
DUtils.h94 inline uint32_t sizeOfData(const Operand& operand) { in sizeOfData() argument
95 return sizeOfData(operand.type, operand.dimensions); in sizeOfData()
/frameworks/ml/nn/common/operations/
DSVDF.cpp28 inline T *GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer() argument
29 return reinterpret_cast<T*>(operand->buffer); in GetBuffer()
33 inline const T *GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer() argument
34 return reinterpret_cast<const T*>(operand->buffer); in GetBuffer()
DLSTM.cpp28 inline T *GetBuffer(RunTimeOperandInfo* operand) { in GetBuffer() argument
29 return reinterpret_cast<T*>(operand->buffer); in GetBuffer()
33 inline const T *GetBuffer(const RunTimeOperandInfo* operand) { in GetBuffer() argument
34 return reinterpret_cast<const T*>(operand->buffer); in GetBuffer()
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
DLockFindingClassVisitor.java129 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/
Dsync_enums_to_hal.py213 operand = [] variable
216 operand.append(line)
217 types10.sections[types10.OPERAND] = operand
/frameworks/ml/nn/runtime/test/
DTestPartitioning.cpp354 uint32_t operand = addOperand(&type); in addIntOperand() local
355 setOperandValue(operand, &value, sizeof(value)); in addIntOperand()
356 return operand; in addIntOperand()
361 uint32_t addOperandOfSameType(uint32_t operand, Dimensioned dimensioned = Dimensioned::YES) { in addOperandOfSameType() argument
363 reinterpret_cast<const ModelBuilder*>(getHandle())->getOperand(operand); in addOperandOfSameType()
518 const Operand& operand = model->getOperand(i); in buildDefinitionMap() local
519 switch (operand.lifetime) { in buildDefinitionMap()
524 ASSERT_EQ(operand.location.length, sizeof(uint32_t)); in buildDefinitionMap()
526 … memcpy(&value, model->getPointerToOperandValue(operand.location.offset), sizeof(uint32_t)); in buildDefinitionMap()
DTestPartitioningRandom.cpp460 const Operand& operand = model.operands[operation.inputs[activationFunctionInputIndex]]; in getSignature() local
461 assert(operand.lifetime == OperandLifeTime::CONSTANT_COPY); in getSignature()
462 assert(operand.type == OperandType::INT32); in getSignature()
465 &model.operandValues[operand.location.offset], in getSignature()
466 operand.location.length); in getSignature()
/frameworks/base/services/core/java/com/android/server/notification/
DValidateNotificationPeople.java531 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()
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
DDelegateMethodAdapter.java403 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
405 mOrgWriter.visitIntInsn(opcode, operand); in visitIntInsn()
DStubMethodAdapter.java320 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
322 mParentVisitor.visitIntInsn(opcode, operand); in visitIntInsn()
DDependencyFinder.java551 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
DAsmAnalyzer.java673 public void visitIntInsn(int opcode, int operand) { in visitIntInsn() argument
/frameworks/data-binding/prebuilds/1.0-rc0/
Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/ ...
/frameworks/rs/driver/runtime/ll32/
Dallocation.ll27 ; We do this by swapping the second operand of "RenderScript TBAA" with the node
/frameworks/rs/driver/runtime/ll64/
Dallocation.ll29 ; We do this by swapping the second operand of "RenderScript TBAA" with the node

12