Home
last modified time | relevance | path

Searched refs:NN_TRY (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/NeuralNetworks/common/types/src/
DValidation.cpp76 version = combineVersions(version, NN_TRY(validationFunction(object))); in validateVector()
272 auto version = NN_TRY(validateOperandType(operandPerformance.type)); in validateCapabilitiesOperandPerformance()
274 NN_TRY(validateCapabilitiesPerformanceInfo(operandPerformance.info))); in validateCapabilitiesOperandPerformance()
282 NN_TRY(validateVector(operandPerformances.asVector(), validateCapabilitiesOperandPerformance)); in validateCapabilitiesOperandPerformanceTable()
288 NN_TRY(validateCapabilitiesOperandPerformanceTable(capabilities.operandPerformance)); in validateCapabilities()
291 NN_TRY(validateCapabilitiesPerformanceInfo( in validateCapabilities()
294 NN_TRY(validateCapabilitiesPerformanceInfo( in validateCapabilities()
297 version, NN_TRY(validateCapabilitiesPerformanceInfo(capabilities.ifPerformance))); in validateCapabilities()
299 version, NN_TRY(validateCapabilitiesPerformanceInfo(capabilities.whilePerformance))); in validateCapabilities()
326 NN_TRY(validateVector(extension.operandTypes, in validateExtension()
[all …]
DSharedMemory.cpp125 auto memory = NN_TRY(mBuilder.finish()); in finish()
128 const auto [pointer, size, context] = NN_TRY(map(memory);); in finish()
170 auto memory = NN_TRY(memoryBuilder.finish()); in flushDataFromPointerToShared()
233 auto memory = NN_TRY(inputBuilder.finish()); in convertRequestFromPointerToShared()
235 relocation.input = NN_TRY( in convertRequestFromPointerToShared()
257 auto memory = NN_TRY(outputBuilder.finish()); in convertRequestFromPointerToShared()
259 relocation.output = NN_TRY(OutputRelocationTracker::create(std::move(outputRelocationInfos), in convertRequestFromPointerToShared()
/packages/modules/NeuralNetworks/runtime/test/android_fuzzing/
DDriverFuzzTest.cpp55 const auto model = NN_TRY(test::createModel(testModel)); in runTest()
58 const auto preparedModel = NN_TRY(device->prepareModel( in runTest()
65 const auto request = NN_TRY(test::createRequest(testModel)); in runTest()
68 NN_TRY(preparedModel->execute(request, MeasureTiming::YES, /*deadline=*/{}, in runTest()
/packages/modules/NeuralNetworks/runtime/operation_converters/
DConv2DOperationConverter.cpp32 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kInputTensorIdx])); in getConv2DInputs()
34 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kFilterTensorIdx], in getConv2DInputs()
36 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kBiasTensorIdx])); in getConv2DInputs()
46 NN_TRY(context->createTensorFlatbufferFromOperand(operation.outputs[kOutputTensorIdx])); in getConv2DOutputs()
127 NN_TRY(getTensorFlatbufferOperandType(inputOperand.type)) /* type */, 0 /* buffer */, in decomposeExplicitPadding()
158 std::vector<int32_t> inputs = NN_TRY(getConv2DInputs(operation, context)); in convert()
159 std::vector<int32_t> outputs = NN_TRY(getConv2DOutputs(operation, context)); in convert()
164 auto padOpIdx = NN_TRY(decomposeExplicitPadding(operation, context)); in convert()
229 NN_TRY(getTfliteActivation(activation)) /* fused_activation_function */, dilationW, in convert()
DLogisticOperationConverter.cpp29 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kInputTensorIdx])); in getLogisticInputs()
37 NN_TRY(context->createTensorFlatbufferFromOperand(operation.outputs[kOutputTensorIdx])); in getLogisticOutputs()
48 std::vector<int32_t> inputs = NN_TRY(getLogisticInputs(operation, context)); in convert()
49 std::vector<int32_t> outputs = NN_TRY(getLogisticOutputs(operation, context)); in convert()
DArithmeticOperationConverter.cpp29 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kInput1TensorIdx])); in getArithmeticInputs()
30 NN_TRY(context->createTensorFlatbufferFromOperand(operation.inputs[kInput2TensorIdx])); in getArithmeticInputs()
39 NN_TRY(context->createTensorFlatbufferFromOperand(operation.outputs[kOutputTensorIdx])); in getArithmeticOutputs()
DAddOperationConverter.cpp34 std::vector<int32_t> inputs = NN_TRY(getArithmeticInputs(operation, context)); in convert()
35 std::vector<int32_t> outputs = NN_TRY(getArithmeticOutputs(operation, context)); in convert()
48 NN_TRY(getTfliteActivation(activation)) /* fused_activation_function */); in convert()
DDepthwiseConv2DOperationConverter.cpp40 std::vector<int32_t> inputs = NN_TRY(getConv2DInputs(operation, context)); in convert()
41 std::vector<int32_t> outputs = NN_TRY(getConv2DOutputs(operation, context)); in convert()
46 auto padOpIdx = NN_TRY(decomposeExplicitPadding(operation, context)); in convert()
116 NN_TRY(getTfliteActivation(activation)) /* fused_activation_function */, in convert()
/packages/modules/NeuralNetworks/runtime/
DFlatbufferModelBuilder.cpp67 auto subgraphsVector = NN_TRY(createSubGraphs()); in createTfliteModel()
86 NN_TRY(checkAllTensorOperandsHaveSpecifiedRank(subgraph.operands)); in createSubGraphFlatbuffer()
88 NN_TRY(checkNoSubgraphOutputOperandsHaveDynamicShape(subgraph.operands)); in createSubGraphFlatbuffer()
98 NN_TRY(converter->convert(operation, &context)); in createSubGraphFlatbuffer()
117 auto mainSubGraph = NN_TRY(createSubGraphFlatbuffer(mModel.main)); in createSubGraphs()
/packages/modules/NeuralNetworks/common/types/operations/src/
DReshape.cpp63 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateDepthToSpace()
103 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateSpaceToDepth()
151 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validatePad()
198 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validatePadV2()
248 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateBatchToSpaceND()
305 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateSpaceToBatchND()
343 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validateReshape()
DMultinomial.cpp38 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DHashtableLookup.cpp37 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DPow.cpp45 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DSVDF.cpp44 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DArgMinMax.cpp39 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DQuantizedLSTM.cpp40 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DTile.cpp47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DSplit.cpp45 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DExpandDims.cpp47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DSimpleMath.cpp47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DMaximumMinimum.cpp47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DEmbeddingLookup.cpp48 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
DLSHProjection.cpp58 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/
DTestUtils.cpp103 operands.push_back(NN_TRY(createOperand(operand, operandValues, memoryBuilder))); in createSubgraph()
129 NN_TRY(createSubgraph(testModel.main, &operandValues, &memoryBuilder)); in createModel()
134 NN_TRY(createSubgraph(testSubgraph, &operandValues, &memoryBuilder))); in createModel()
140 pools.push_back(NN_TRY(memoryBuilder.finish())); in createModel()
202 pools.push_back(NN_TRY(outputBuilder.finish())); in createRequest()
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DSharedMemory.h79 fds.push_back(NN_TRY(dupFd(fd))); in dupFds()
148 auto mapping = NN_TRY(map(memory)); in create()

12