Home
last modified time | relevance | path

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

12

/aosp12/packages/modules/NeuralNetworks/common/
H A 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()
H A DMetaModel.cpp153 CHECK(operand.lifetime == Operand::LifeTime::SUBGRAPH_INPUT || in getIndex()
154 operand.lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT || in getIndex()
155 operand.lifetime == Operand::LifeTime::TEMPORARY_VARIABLE); in getIndex()
166 operand.lifetime = Operand::LifeTime::SUBGRAPH_INPUT; in getIndex()
316 const auto subgraphOutputLifetime = Operand::LifeTime::SUBGRAPH_OUTPUT; in processOperations()
385 return origOperands[opndIdx].lifetime == Operand::LifeTime::SUBGRAPH; in makeSlice()
422 case Operand::LifeTime::CONSTANT_COPY: in makeSlice()
423 case Operand::LifeTime::CONSTANT_REFERENCE: in makeSlice()
424 case Operand::LifeTime::POINTER: in makeSlice()
425 case Operand::LifeTime::NO_VALUE: { in makeSlice()
H A DTypeUtils.cpp330 case Operand::LifeTime::TEMPORARY_VARIABLE: in operator <<()
332 case Operand::LifeTime::SUBGRAPH_INPUT: in operator <<()
334 case Operand::LifeTime::SUBGRAPH_OUTPUT: in operator <<()
336 case Operand::LifeTime::CONSTANT_COPY: in operator <<()
338 case Operand::LifeTime::CONSTANT_REFERENCE: in operator <<()
340 case Operand::LifeTime::NO_VALUE: in operator <<()
342 case Operand::LifeTime::SUBGRAPH: in operator <<()
344 case Operand::LifeTime::POINTER: in operator <<()
567 case Request::Argument::LifeTime::POOL: in operator <<()
569 case Request::Argument::LifeTime::NO_VALUE: in operator <<()
[all …]
H A DCpuExecutor.cpp441 to.lifetime = Operand::LifeTime::TEMPORARY_VARIABLE; in convertToNhwc()
627 case Operand::LifeTime::TEMPORARY_VARIABLE: in initializeRunTimeInfo()
631 case Operand::LifeTime::CONSTANT_COPY: in initializeRunTimeInfo()
635 case Operand::LifeTime::CONSTANT_REFERENCE: { in initializeRunTimeInfo()
643 case Operand::LifeTime::SUBGRAPH: { in initializeRunTimeInfo()
650 case Operand::LifeTime::POINTER: { in initializeRunTimeInfo()
655 case Operand::LifeTime::SUBGRAPH_INPUT: in initializeRunTimeInfo()
656 case Operand::LifeTime::SUBGRAPH_OUTPUT: in initializeRunTimeInfo()
657 case Operand::LifeTime::NO_VALUE: in initializeRunTimeInfo()
690 case Request::Argument::LifeTime::POOL: { in updateForArguments()
[all …]
H A DValidation.cpp212 case Operand::LifeTime::SUBGRAPH_INPUT: in validateOperandLifeTime()
213 case Operand::LifeTime::SUBGRAPH_OUTPUT: in validateOperandLifeTime()
214 case Operand::LifeTime::CONSTANT_COPY: in validateOperandLifeTime()
216 case Operand::LifeTime::NO_VALUE: in validateOperandLifeTime()
217 case Operand::LifeTime::POINTER: in validateOperandLifeTime()
219 case Operand::LifeTime::SUBGRAPH: in validateOperandLifeTime()
394 case Operand::LifeTime::CONSTANT_COPY: in validateOperandDataLocation()
414 case Operand::LifeTime::SUBGRAPH_INPUT: in validateOperandDataLocation()
416 case Operand::LifeTime::NO_VALUE: in validateOperandDataLocation()
427 case Operand::LifeTime::SUBGRAPH: { in validateOperandDataLocation()
[all …]
H A DAidlBufferTracker.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()
H A 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()
H A 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()
/aosp12/packages/modules/NeuralNetworks/runtime/
H A DModelBuilder.cpp102 .lifetime = Operand::LifeTime::TEMPORARY_VARIABLE, in addOperand()
137 operand.lifetime = Operand::LifeTime::NO_VALUE; in setOperandValue()
165 operand.lifetime = Operand::LifeTime::CONSTANT_COPY; in setOperandValue()
172 operand.lifetime = Operand::LifeTime::CONSTANT_REFERENCE; in setOperandValue()
206 operand.lifetime = Operand::LifeTime::SUBGRAPH; in setOperandValueFromModel()
349 operand.lifetime = Operand::LifeTime::CONSTANT_REFERENCE; in setOperandValueFromMemory()
581 if (operand.lifetime == Operand::LifeTime::CONSTANT_COPY) { in matchesSpec()
583 } else if (operand.lifetime == Operand::LifeTime::POINTER) { in matchesSpec()
820 lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT) { in sortIntoRunOrder()
924 if (operand.lifetime == Operand::LifeTime::CONSTANT_COPY) { in updateOperandLocations()
[all …]
H A 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()
H A DExecutionPlan.cpp153 if (lifetime == Operand::LifeTime::TEMPORARY_VARIABLE || in OperandTracker()
154 lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT) { in OperandTracker()
454 case Operand::LifeTime::CONSTANT_COPY: { in addOperand()
458 case Operand::LifeTime::CONSTANT_REFERENCE: { in addOperand()
463 case Operand::LifeTime::NO_VALUE: { in addOperand()
480 case Operand::LifeTime::SUBGRAPH_INPUT: { in addOperand()
499 case Operand::LifeTime::SUBGRAPH: { in addOperand()
503 case Operand::LifeTime::POINTER: { in addOperand()
1247 Operand::LifeTime lifetime = in makeController()
1250 lifetime == Operand::LifeTime::SUBGRAPH_OUTPUT); in makeController()
[all …]
/aosp12/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
H A DTestUtils.cpp49 const Operand::LifeTime lifetime = static_cast<Operand::LifeTime>(operand.lifetime); in createOperand()
156 requestArgument = {.lifetime = Request::Argument::LifeTime::NO_VALUE}; in createRequest()
159 requestArgument = {.lifetime = Request::Argument::LifeTime::POOL, in createRequest()
182 outputs.push_back({.lifetime = Request::Argument::LifeTime::POOL, in createRequest()
H A DAssertions.cpp35 COMPARE_ENUMS_TYPES(TestOperandLifeTime, Operand::LifeTime);
178 #define COMPARE_ENUMS(symbol) COMPARE_ENUMS_FULL(symbol, TestOperandLifeTime, Operand::LifeTime)
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/
H A DConversions.cpp87 GeneralResult<Operand::LifeTime> unvalidatedConvert(const hal::V1_0::OperandLifeTime& lifetime) { in unvalidatedConvert()
88 return static_cast<Operand::LifeTime>(lifetime); in unvalidatedConvert()
183 const auto lifetime = argument.hasNoValue ? Request::Argument::LifeTime::NO_VALUE in unvalidatedConvert()
184 : Request::Argument::LifeTime::POOL; in unvalidatedConvert()
273 nn::GeneralResult<OperandLifeTime> unvalidatedConvert(const nn::Operand::LifeTime& lifetime) { in unvalidatedConvert()
274 if (lifetime == nn::Operand::LifeTime::POINTER) { in unvalidatedConvert()
367 if (requestArgument.lifetime == nn::Request::Argument::LifeTime::POINTER) { in unvalidatedConvert()
371 const bool hasNoValue = requestArgument.lifetime == nn::Request::Argument::LifeTime::NO_VALUE; in unvalidatedConvert()
H A DAssertions.cpp36 COMPARE_ENUMS_TYPES(OperandLifeTime, Operand::LifeTime);
109 COMPARE_ENUMS_FULL(lhsSymbol, rhsSymbol, OperandLifeTime, Operand::LifeTime)
/aosp12/packages/modules/NeuralNetworks/common/include/nnapi/
H A DTypes.h427 enum class LifeTime { enum
583 LifeTime lifetime{};
855 enum class LifeTime { enum
861 LifeTime lifetime{};
/aosp12/hardware/interfaces/neuralnetworks/utils/common/src/
H A DCommonUtils.cpp72 if (operand->lifetime != nn::Operand::LifeTime::POINTER) { in copyPointersToSharedMemory()
79 operand->lifetime = nn::Operand::LifeTime::CONSTANT_REFERENCE; in copyPointersToSharedMemory()
244 if (input.lifetime != nn::Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
248 input.lifetime = nn::Request::Argument::LifeTime::POOL; in convertRequestFromPointerToShared()
269 if (output.lifetime != nn::Request::Argument::LifeTime::POINTER) { in convertRequestFromPointerToShared()
273 output.lifetime = nn::Request::Argument::LifeTime::POOL; in convertRequestFromPointerToShared()
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
H A DConversions.h29 GeneralResult<Operand::LifeTime> unvalidatedConvert(const hal::V1_0::OperandLifeTime& lifetime);
58 nn::GeneralResult<OperandLifeTime> unvalidatedConvert(const nn::Operand::LifeTime& lifetime);
/aosp12/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
H A DGenerateCorpus.cpp44 Operand::LifeTime convert(TestOperandLifeTime lifetime) { in convert()
45 return static_cast<Operand::LifeTime>(lifetime); in convert()
/aosp12/packages/modules/NeuralNetworks/common/include/
H A DCpuExecutor.h67 Operand::LifeTime lifetime;
262 return input->lifetime == Operand::LifeTime::NO_VALUE; in IsNullInput()
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/src/
H A DAssertions.cpp36 COMPARE_ENUMS_TYPES(OperandLifeTime, Operand::LifeTime);
190 #define COMPARE_ENUMS(symbol) COMPARE_ENUMS_FULL(symbol, OperandLifeTime, Operand::LifeTime)
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
H A DConversions.h35 GeneralResult<Operand::LifeTime> unvalidatedConvert(
76 nn::GeneralResult<OperandLifeTime> unvalidatedConvert(const nn::Operand::LifeTime& operandLifeTime);
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/src/
H A DAssertions.cpp46 COMPARE_ENUMS_TYPES(OperandLifeTime, Operand::LifeTime);
198 COMPARE_ENUMS_FULL(lhsSymbol, rhsSymbol, OperandLifeTime, Operand::LifeTime)
H A DConversions.cpp249 GeneralResult<Operand::LifeTime> unvalidatedConvert( in unvalidatedConvert()
251 return static_cast<Operand::LifeTime>(operandLifeTime); in unvalidatedConvert()
456 const auto lifetime = argument.hasNoValue ? Request::Argument::LifeTime::NO_VALUE in unvalidatedConvert()
457 : Request::Argument::LifeTime::POOL; in unvalidatedConvert()
807 const nn::Operand::LifeTime& operandLifeTime) { in unvalidatedConvert()
931 if (requestArgument.lifetime == nn::Request::Argument::LifeTime::POINTER) { in unvalidatedConvert()
935 const bool hasNoValue = requestArgument.lifetime == nn::Request::Argument::LifeTime::NO_VALUE; in unvalidatedConvert()
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
H A DConversions.h71 GeneralResult<Operand::LifeTime> unvalidatedConvert(
141 nn::GeneralResult<OperandLifeTime> unvalidatedConvert(const nn::Operand::LifeTime& operandLifeTime);

12