Searched refs:operand (Results 1 - 23 of 23) sorted by relevance

/frameworks/ml/nn/common/
H A DValidateHal.cpp62 for (auto& operand : operands) {
64 switch (operand.type) {
69 size_t count = operand.dimensions.size();
81 if (operand.dimensions.size() == 0) {
88 LOG(ERROR) << "Operand " << index << ": Invalid operand type "
89 << toString(operand.type);
99 switch (operand.type) {
104 if (operand.scale != 0.f) {
106 << getOperandTypeName(operand.type) << " with a non-zero scale ("
107 << operand
332 const Operand& operand = operands[i]; local
350 const Operand& operand = operands[i]; local
388 const Operand& operand = operands[i]; local
448 const Operand& operand = operands[operandIndex]; local
[all...]
/frameworks/rs/rsov/compiler/spirit/
H A Dinstructions.h36 // Word count for a serialized operand
42 inline uint16_t WordCount(const std::string &operand) { argument
43 return operand.length() / 4 + 1;
97 bool DeserializeExactlyOne(InputWordStream &IS, T *operand) { argument
102 IS >> operand; local
104 mRemainingWordCount -= WordCount(*operand);
110 bool DeserializeOptionallyOne(InputWordStream &IS, T **operand) { argument
114 *operand = new T();
115 return DeserializeExactlyOne(IS, *operand);
H A Dgenerate.py194 for operand in operands:
195 type = operand['kind']
201 quantifier = operand.get('quantifier')
202 comment = operand.get('name');
/frameworks/ml/nn/runtime/
H A DModelBuilder.cpp74 VLOG(MODEL) << __func__ << " for operand " << index << " size " << length;
80 LOG(ERROR) << "ANeuralNetworksModel_setOperandValue setting operand " << index << " of "
84 Operand& operand = mOperands[index]; local
91 operand.lifetime = OperandLifeTime::NO_VALUE;
93 operand.location = {.poolIndex = 0,
103 uint32_t neededLength = sizeOfData(operand.type, operand.dimensions);
104 if (operand.type != OperandType::OEM && neededLength != valueLength) {
113 operand.lifetime = OperandLifeTime::CONSTANT_COPY;
114 operand
141 Operand& operand = mOperands[l.operandIndex]; local
164 Operand& operand = mOperands[l.operandIndex]; local
184 Operand& operand = mOperands[index]; local
[all...]
H A DManager.cpp107 const Operand& operand = hidlModel.operands[operandIndex];
108 accumulator ^= static_cast<uint32_t>(operand.type);
109 accumulator ^= operand.dimensions.size();
110 for (uint32_t dimension : operand.dimensions) {
112 if (operand.lifetime == OperandLifeTime::CONSTANT_COPY ||
113 operand.lifetime == OperandLifeTime::CONSTANT_REFERENCE) {
H A DExecutionBuilder.cpp35 int ModelArgumentInfo::setFromPointer(const Operand& operand, argument
47 int n = updateDimensionInfo(operand, type);
51 uint32_t neededLength = sizeOfData(operand.type, dimensions);
52 if (operand.type != OperandType::OEM && neededLength != length) {
64 int ModelArgumentInfo::setFromMemory(const Operand& operand, const ANeuralNetworksOperandType* type, argument
66 int n = updateDimensionInfo(operand, type);
70 uint32_t neededLength = sizeOfData(operand.type, dimensions);
71 if (operand.type != OperandType::OEM && neededLength != length) {
83 int ModelArgumentInfo::setFromTemporaryMemory(const Operand& operand, argument
85 int n = updateDimensionInfo(operand, nullpt
96 updateDimensionInfo(const Operand& operand, const ANeuralNetworksOperandType* newType) argument
[all...]
H A 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);
132 // operand indexes.
147 // corresponding operand.
H A DExecutionPlan.cpp76 // This class tracks whether we know the value of an operand as operations
135 // Adds an operand if it has not been added already.
136 // Sets the index in the submodel for the corresponding operand.
139 // Have we added this operand already?
147 // First time we add this operand.
151 // Add the operand to the submodel.
152 const Operand& operand = fromModel.getOperand(fromOperandIndex); local
154 .type = static_cast<int32_t>(operand.type),
155 .dimensionCount = static_cast<uint32_t>(operand.dimensions.size()),
156 .dimensions = operand
383 const Operand& operand = mSubModel.getOperand(subModelOutput.second); local
[all...]
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DInMatcher.java66 public static <T> Matcher<T> in(T... operand) { argument
67 return new InMatcher<T>(operand);
71 public static <T> Matcher<T> in(Collection<T> operand) { argument
72 return new InMatcher<T>(operand);
/frameworks/ml/nn/common/include/
H A DCpuExecutor.h31 // Information we maintain about each operand during execution that
36 // The type and dimensions of the operand. The dimensions can
44 // Where the operand's data is stored. Check the corresponding
46 // to memory we have allocated for an temporary operand.
133 // making a full copy, the indexes used in the operand description
203 inline size_t NumDimensions(const RunTimeOperandInfo *operand) { argument
204 return operand->shape().dimensions.size();
207 inline uint32_t SizeOfDimension(const RunTimeOperandInfo *operand, int i) { argument
208 return operand->shape().dimensions[i];
H A DUtils.h93 // type of this operand.
94 inline uint32_t sizeOfData(const Operand& operand) { argument
95 return sizeOfData(operand.type, operand.dimensions);
101 // Returns the name of the operand type in ASCII.
/frameworks/ml/nn/common/operations/
H A DSVDF.cpp28 inline T *GetBuffer(RunTimeOperandInfo* operand) { argument
29 return reinterpret_cast<T*>(operand->buffer);
33 inline const T *GetBuffer(const RunTimeOperandInfo* operand) { argument
34 return reinterpret_cast<const T*>(operand->buffer);
H A DLSTM.cpp28 inline T *GetBuffer(RunTimeOperandInfo* operand) { argument
29 return reinterpret_cast<T*>(operand->buffer);
33 inline const T *GetBuffer(const RunTimeOperandInfo* operand) { argument
34 return reinterpret_cast<const T*>(operand->buffer);
/frameworks/base/tools/locked_region_code_injection/src/lockedregioncodeinjection/
H A DLockFindingClassVisitor.java129 BasicValue operand = (BasicValue) f.getStack(f.getStackSize() - 1);
130 if (operand instanceof LockTargetState) {
131 LockTargetState state = (LockTargetState) operand;
143 BasicValue operand = (BasicValue) f.getStack(f.getStackSize() - 1);
144 if (operand instanceof LockTargetState) {
145 LockTargetState state = (LockTargetState) operand;
/frameworks/ml/nn/tools/
H A Dsync_enums_to_hal.py213 operand = [] variable
216 operand.append(line)
217 types10.sections[types10.OPERAND] = operand
/frameworks/ml/nn/runtime/test/
H A DTestPartitioning.cpp89 // outputs in order to construct the models and operand lists to
103 // operand number in the original model (see ExecutionStep method
293 // about graph topology rather than details of operand types and
297 // Create a tensor operand of the specified type, and return the
298 // corresponding operand index.
309 // the operation kind (0..7) and the input operand indexes.
310 // Returns the output operand index.
324 // specifying the input operand index. Returns the output operand
350 // Create a scalar integer operand o
354 uint32_t operand = addOperand(&type); local
361 addOperandOfSameType(uint32_t operand, Dimensioned dimensioned = Dimensioned::YES) argument
518 const Operand& operand = model->getOperand(i); local
[all...]
H A DTestPartitioningRandom.cpp82 // cases where an operand cannot be of this type, it is a constant
205 // Large operand values -- not immediately copied into the
367 // Represents an operation in which every input and output operand
369 // - One input operand may be an activation function.
373 // - There be at least one input operand that is neither an
381 // Returns operand index, or <0 if input is normal (must not
382 // be called for an activation function operand). Function
397 // input operand 3 is bias, a 1-D tensor
460 const Operand& operand = model.operands[operation.inputs[activationFunctionInputIndex]]; local
461 assert(operand
[all...]
/frameworks/base/services/core/java/com/android/server/notification/
H A DValidateNotificationPeople.java531 public void applyChangesLocked(NotificationRecord operand) { argument
532 float affinityBound = operand.getContactAffinity();
533 operand.setContactAffinity(Math.max(mContactAffinity, affinityBound));
534 if (VERBOSE) Slog.i(TAG, "final affinity: " + operand.getContactAffinity());
/frameworks/layoutlib/create/src/com/android/tools/layoutlib/create/
H A DDelegateMethodAdapter.java403 public void visitIntInsn(int opcode, int operand) { argument
405 mOrgWriter.visitIntInsn(opcode, operand);
H A DStubMethodAdapter.java320 public void visitIntInsn(int opcode, int operand) { argument
322 mParentVisitor.visitIntInsn(opcode, operand);
H A DAsmAnalyzer.java669 // pass -- a zero operand instruction
673 public void visitIntInsn(int opcode, int operand) { argument
674 // pass -- a single int operand instruction
769 // type is the operand of the instruction to be visited. This operand must be the
H A DDependencyFinder.java547 // pass -- a zero operand instruction
551 public void visitIntInsn(int opcode, int operand) { argument
552 // pass -- a single int operand instruction
643 // type is the operand of the instruction to be visited. This operand must be the
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 373 milliseconds