Home
last modified time | relevance | path

Searched refs:LifeTime (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/NeuralNetworks/common/
DGraphDump.cpp134 if (opnd.lifetime == Operand::LifeTime::CONSTANT_COPY) { in tryValueDump()
136 } else if (opnd.lifetime == Operand::LifeTime::POINTER) { in tryValueDump()
189 case Operand::LifeTime::CONSTANT_COPY: in graphDump()
192 case Operand::LifeTime::CONSTANT_REFERENCE: in graphDump()
195 case Operand::LifeTime::SUBGRAPH_INPUT: in graphDump()
198 case Operand::LifeTime::SUBGRAPH_OUTPUT: in graphDump()
201 case Operand::LifeTime::NO_VALUE: in graphDump()
204 case Operand::LifeTime::SUBGRAPH: in graphDump()
207 case Operand::LifeTime::POINTER: in graphDump()
210 case Operand::LifeTime::TEMPORARY_VARIABLE: in graphDump()
DModelUtils.cpp104 if (operand.lifetime == Operand::LifeTime::SUBGRAPH) { in identifyUsedSubgraphs()
147 if (operand.lifetime == Operand::LifeTime::CONSTANT_REFERENCE) { in identifyUsedPools()
176 case Operand::LifeTime::CONSTANT_COPY: { in fixOperandDataLocation()
182 case Operand::LifeTime::CONSTANT_REFERENCE: in fixOperandDataLocation()
185 case Operand::LifeTime::SUBGRAPH: { in fixOperandDataLocation()
190 case Operand::LifeTime::TEMPORARY_VARIABLE: in fixOperandDataLocation()
191 case Operand::LifeTime::SUBGRAPH_INPUT: in fixOperandDataLocation()
192 case Operand::LifeTime::SUBGRAPH_OUTPUT: in fixOperandDataLocation()
193 case Operand::LifeTime::NO_VALUE: in fixOperandDataLocation()
194 case Operand::LifeTime::POINTER: in fixOperandDataLocation()
DMetaModel.cpp154 CHECK(operand.lifetime == Operand::LifeTime::SUBGRAPH_INPUT || in getIndex()
155 operand.lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT || in getIndex()
156 operand.lifetime == Operand::LifeTime::TEMPORARY_VARIABLE); in getIndex()
167 operand.lifetime = Operand::LifeTime::SUBGRAPH_INPUT; in getIndex()
317 const auto subgraphOutputLifetime = Operand::LifeTime::SUBGRAPH_OUTPUT; in processOperations()
395 return origOperands[opndIdx].lifetime == Operand::LifeTime::SUBGRAPH; in makeSlice()
432 case Operand::LifeTime::CONSTANT_COPY: in makeSlice()
433 case Operand::LifeTime::CONSTANT_REFERENCE: in makeSlice()
434 case Operand::LifeTime::POINTER: in makeSlice()
435 case Operand::LifeTime::NO_VALUE: { in makeSlice()
DCpuExecutor.cpp171 if (info->lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT) { in setInfoAndAllocateIfNeeded()
216 if (info->buffer == nullptr && (info->lifetime == Operand::LifeTime::TEMPORARY_VARIABLE || in setInfoAndAllocateIfNeeded()
217 info->lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT)) { in setInfoAndAllocateIfNeeded()
249 return getInputInfo(index)->lifetime == Operand::LifeTime::NO_VALUE; in isOmittedInput()
253 return getOutputInfo(index)->lifetime == Operand::LifeTime::NO_VALUE; in isOmittedOutput()
441 to.lifetime = Operand::LifeTime::TEMPORARY_VARIABLE; in convertToNhwc()
548 if (info.lifetime == Operand::LifeTime::TEMPORARY_VARIABLE && info.numberOfUsesLeft == 0 && in freeUnusedSubgraphOperands()
627 case Operand::LifeTime::TEMPORARY_VARIABLE: in initializeRunTimeInfo()
631 case Operand::LifeTime::CONSTANT_COPY: in initializeRunTimeInfo()
635 case Operand::LifeTime::CONSTANT_REFERENCE: { in initializeRunTimeInfo()
[all …]
DHalBufferTracker.cpp68 if (request.inputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
91 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
DBufferTracker.cpp68 if (request.inputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
90 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in validateRequest()
/packages/modules/NeuralNetworks/runtime/test/
DTestCompliance.cpp161 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
164 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
174 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
177 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
196 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
199 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
209 .inputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
212 .outputs = {{.lifetime = Request::Argument::LifeTime::POOL, in TEST_F()
/packages/modules/NeuralNetworks/runtime/
DModelBuilder.cpp106 .lifetime = Operand::LifeTime::TEMPORARY_VARIABLE, in addOperand()
142 operand.lifetime = Operand::LifeTime::NO_VALUE; in setOperandValue()
170 operand.lifetime = Operand::LifeTime::CONSTANT_COPY; in setOperandValue()
177 operand.lifetime = Operand::LifeTime::CONSTANT_REFERENCE; in setOperandValue()
211 operand.lifetime = Operand::LifeTime::SUBGRAPH; in setOperandValueFromModel()
298 CHECK_EQ(operand.lifetime, Operand::LifeTime::CONSTANT_REFERENCE); in copyLargeValuesToSharedMemory()
355 operand.lifetime = Operand::LifeTime::CONSTANT_REFERENCE; in setOperandValueFromMemory()
454 const uint32_t* indexList, Operand::LifeTime lifetime) -> bool { in identifyInputsAndOutputs()
468 if (operand.lifetime != Operand::LifeTime::TEMPORARY_VARIABLE) { in identifyInputsAndOutputs()
480 if (!setArguments(&mInputIndexes, inputCount, inputs, Operand::LifeTime::SUBGRAPH_INPUT) || in identifyInputsAndOutputs()
[all …]
DModelArgumentInfo.cpp129 Request::Argument arg = {.lifetime = Request::Argument::LifeTime::POINTER, in createRequestArgument()
136 return {.lifetime = Request::Argument::LifeTime::POOL, in createRequestArgument()
140 return {.lifetime = Request::Argument::LifeTime::NO_VALUE}; in createRequestArgument()
159 ioInfos[i] = {.lifetime = Request::Argument::LifeTime::POOL, in createRequestArguments()
DFlatbufferModelBuilderUtils.h132 return operand.lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT && in subgraphOutputOperandHasDynamicShape()
146 return operand.lifetime == Operand::LifeTime::CONSTANT_COPY || in isOperandConstant()
147 operand.lifetime == Operand::LifeTime::CONSTANT_REFERENCE; in isOperandConstant()
DExecutionPlan.cpp193 if (lifetime == Operand::LifeTime::TEMPORARY_VARIABLE || in OperandTracker()
194 lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT) { in OperandTracker()
494 case Operand::LifeTime::CONSTANT_COPY: { in addOperand()
498 case Operand::LifeTime::CONSTANT_REFERENCE: { in addOperand()
503 case Operand::LifeTime::NO_VALUE: { in addOperand()
506 case Operand::LifeTime::TEMPORARY_VARIABLE: { // handled similarly to SUBGRAPH_OUTPUT in addOperand()
520 case Operand::LifeTime::SUBGRAPH_INPUT: { in addOperand()
523 case Operand::LifeTime::SUBGRAPH_OUTPUT: { // handled similarly to TEMPORARY_VARIABLE in addOperand()
539 case Operand::LifeTime::SUBGRAPH: { in addOperand()
543 case Operand::LifeTime::POINTER: { in addOperand()
[all …]
DModelBuilder.h127 CHECK(operand.lifetime == Operand::LifeTime::SUBGRAPH); in getReferencedModel()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp50 Operand::LifeTime lifetime = static_cast<Operand::LifeTime>(operand.lifetime); in createOperand()
63 lifetime = Operand::LifeTime::NO_VALUE; in createOperand()
163 requestArgument = {.lifetime = Request::Argument::LifeTime::NO_VALUE}; in createRequest()
167 requestArgument = {.lifetime = Request::Argument::LifeTime::POINTER, in createRequest()
194 outputs.push_back({.lifetime = Request::Argument::LifeTime::POOL, in createRequest()
DAssertions.cpp35 COMPARE_ENUMS_TYPES(TestOperandLifeTime, Operand::LifeTime);
178 #define COMPARE_ENUMS(symbol) COMPARE_ENUMS_FULL(symbol, TestOperandLifeTime, Operand::LifeTime)
/packages/modules/NeuralNetworks/common/types/src/
DSharedMemory.cpp65 if (operand->lifetime != Operand::LifeTime::POINTER) { in copyPointersToSharedMemory()
72 operand->lifetime = Operand::LifeTime::CONSTANT_REFERENCE; in copyPointersToSharedMemory()
219 if (input.lifetime != Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
223 input.lifetime = Request::Argument::LifeTime::POOL; in convertRequestFromPointerToShared()
244 if (output.lifetime != Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
248 output.lifetime = Request::Argument::LifeTime::POOL; in convertRequestFromPointerToShared()
DValidation.cpp176 (operand.lifetime == Operand::LifeTime::SUBGRAPH)) in validateOperandLifeTime()
180 case Operand::LifeTime::TEMPORARY_VARIABLE: in validateOperandLifeTime()
181 case Operand::LifeTime::SUBGRAPH_INPUT: in validateOperandLifeTime()
182 case Operand::LifeTime::SUBGRAPH_OUTPUT: in validateOperandLifeTime()
183 case Operand::LifeTime::CONSTANT_COPY: in validateOperandLifeTime()
184 case Operand::LifeTime::CONSTANT_REFERENCE: in validateOperandLifeTime()
185 case Operand::LifeTime::NO_VALUE: in validateOperandLifeTime()
186 case Operand::LifeTime::POINTER: in validateOperandLifeTime()
188 case Operand::LifeTime::SUBGRAPH: in validateOperandLifeTime()
363 case Operand::LifeTime::CONSTANT_COPY: in validateOperandDataLocation()
[all …]
DTypeUtils.cpp404 std::ostream& operator<<(std::ostream& os, const Operand::LifeTime& lifetime) { in operator <<()
406 case Operand::LifeTime::TEMPORARY_VARIABLE: in operator <<()
408 case Operand::LifeTime::SUBGRAPH_INPUT: in operator <<()
410 case Operand::LifeTime::SUBGRAPH_OUTPUT: in operator <<()
412 case Operand::LifeTime::CONSTANT_COPY: in operator <<()
414 case Operand::LifeTime::CONSTANT_REFERENCE: in operator <<()
416 case Operand::LifeTime::NO_VALUE: in operator <<()
418 case Operand::LifeTime::SUBGRAPH: in operator <<()
420 case Operand::LifeTime::POINTER: in operator <<()
439 std::ostream& operator<<(std::ostream& os, const Request::Argument::LifeTime& lifetime) { in operator <<()
[all …]
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DTypes.h440 enum class LifeTime { enum
596 LifeTime lifetime{};
880 enum class LifeTime { enum
886 LifeTime lifetime{};
DTypeUtils.h94 std::ostream& operator<<(std::ostream& os, const Operand::LifeTime& lifetime);
96 std::ostream& operator<<(std::ostream& os, const Request::Argument::LifeTime& lifetime);
/packages/modules/NeuralNetworks/driver/sample/
DCanonicalPreparedModel.cpp77 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
87 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
99 if (request.outputs[i].lifetime != Request::Argument::LifeTime::POOL) continue; in updateDeviceMemories()
260 if (output.lifetime != Request::Argument::LifeTime::POOL) continue; in executeFenced()
/packages/modules/NeuralNetworks/common/include/
DCpuExecutor.h67 Operand::LifeTime lifetime;
262 return input->lifetime == Operand::LifeTime::NO_VALUE; in IsNullInput()
DLegacyHalUtils.h350 Operand::LifeTime uncheckedConvert(V1_3::OperandLifeTime lifetime);
392 V1_3::OperandLifeTime convertToV1_3(Operand::LifeTime lifetime);
/packages/modules/NeuralNetworks/driver/sample_hidl/
DSampleDriverFloatXNNPACK.cpp90 to.lifetime = Operand::LifeTime::NO_VALUE; in updateForArguments()
224 if (operands[tensors[t]].lifetime == Operand::LifeTime::CONSTANT_COPY || in Create()
225 operands[tensors[t]].lifetime == Operand::LifeTime::CONSTANT_REFERENCE || in Create()
226 operands[tensors[t]].lifetime == Operand::LifeTime::POINTER) { in Create()
486 static V1_3::ErrorStatus CheckTensorStaticAllocation(Operand::LifeTime lifetime) { in CheckTensorStaticAllocation()
487 if (lifetime != Operand::LifeTime::CONSTANT_COPY && in CheckTensorStaticAllocation()
488 lifetime != Operand::LifeTime::CONSTANT_REFERENCE && in CheckTensorStaticAllocation()
489 lifetime != Operand::LifeTime::POINTER) { in CheckTensorStaticAllocation()
/packages/modules/NeuralNetworks/common/cpu_operations/
DLSHProjection.cpp114 if (weight->lifetime == Operand::LifeTime::NO_VALUE) { in runningSignBit()
/packages/modules/NeuralNetworks/runtime/operation_converters/
DSubGraphContext.cpp126 if (operand.lifetime == Operand::LifeTime::CONSTANT_COPY) { in getConstantPointerAndLength()

12