/packages/modules/NeuralNetworks/common/types/src/ |
D | Validation.cpp | 76 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 …]
|
D | SharedMemory.cpp | 125 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/ |
D | DriverFuzzTest.cpp | 55 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/ |
D | Conv2DOperationConverter.cpp | 32 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()
|
D | LogisticOperationConverter.cpp | 29 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()
|
D | ArithmeticOperationConverter.cpp | 29 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()
|
D | AddOperationConverter.cpp | 34 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()
|
D | DepthwiseConv2DOperationConverter.cpp | 40 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/ |
D | FlatbufferModelBuilder.cpp | 67 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/ |
D | Reshape.cpp | 63 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()
|
D | Multinomial.cpp | 38 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | HashtableLookup.cpp | 37 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | Pow.cpp | 45 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | SVDF.cpp | 44 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | ArgMinMax.cpp | 39 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | QuantizedLSTM.cpp | 40 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | Tile.cpp | 47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | Split.cpp | 45 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | ExpandDims.cpp | 47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | SimpleMath.cpp | 47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | MaximumMinimum.cpp | 47 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | EmbeddingLookup.cpp | 48 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
D | LSHProjection.cpp | 58 NN_TRY(context->validateOperationOperandTypes(inExpectedTypes, outExpectedTypes)); in validate()
|
/packages/modules/NeuralNetworks/tools/test_generator/test_harness/ |
D | TestUtils.cpp | 103 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/ |
D | SharedMemory.h | 79 fds.push_back(NN_TRY(dupFd(fd))); in dupFds() 148 auto mapping = NN_TRY(map(memory)); in create()
|