/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | Callbacks.cpp | 92 const hidl_vec<OutputShape>& outputShapes, in notify_1_2() argument 94 return notifyInternal(static_cast<ErrorStatus>(errorStatus), outputShapes, timing); in notify_1_2() 98 const hidl_vec<OutputShape>& outputShapes, in notify_1_3() argument 100 return notifyInternal(errorStatus, outputShapes, timing); in notify_1_3() 124 hidl_vec<OutputShape> outputShapes, Timing timing) { in notifyInternal() argument 128 if (outputShapes.size() == 0) { in notifyInternal() 131 outputShapes = {}; in notifyInternal() 136 if (outputShapes.size() != 0) { in notifyInternal() 140 outputShapes = {}; in notifyInternal() 155 mOutputShapes = std::move(outputShapes); in notifyInternal()
|
D | ValidateRequest.cpp | 75 const auto& outputShapes = executionCallback->getOutputShapes(); in validate() local 78 ASSERT_EQ(outputShapes.size(), 0); in validate() 88 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, in validate() 91 EXPECT_EQ(outputShapes.size(), 0); in validate() 118 const auto [n, outputShapes, timing, fallback] = burst->compute(request10, measure, keys); in validate() 121 EXPECT_EQ(outputShapes.size(), 0); in validate() 184 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, const Timing& timing) { in validateRequestFailure() argument 186 EXPECT_EQ(outputShapes.size(), 0); in validateRequestFailure()
|
D | QualityOfServiceTests.cpp | 186 hidl_vec<OutputShape> outputShapes = callback->getOutputShapes(); in executeAsynchronously() local 190 return Results{status, std::move(outputShapes), timing}; in executeAsynchronously() 201 const auto cb = [&results](ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, in executeSynchronously() 203 results.emplace(status, outputShapes, timing); in executeSynchronously() 225 const auto& [status, outputShapes, timing] = results.value(); in runExecutionTest() 251 ASSERT_TRUE(outputShapes.size() == 0 || in runExecutionTest() 252 outputShapes.size() == testModel.main.outputIndexes.size()); in runExecutionTest() 255 for (uint32_t i = 0; i < outputShapes.size(); i++) { in runExecutionTest() 256 EXPECT_TRUE(outputShapes[i].isSufficient); in runExecutionTest() 258 const std::vector<uint32_t> actual = outputShapes[i].dimensions; in runExecutionTest()
|
D | GeneratedTestHarness.cpp | 529 hidl_vec<OutputShape>* outputShapes, in ExecutePreparedModel() argument 534 [&result, outputShapes, timing](ErrorStatus error, const hidl_vec<OutputShape>& shapes, in ExecutePreparedModel() 537 *outputShapes = shapes; in ExecutePreparedModel() 589 hidl_vec<OutputShape> outputShapes; in EvaluatePreparedModel() local 606 outputShapes = executionCallback->getOutputShapes(); in EvaluatePreparedModel() 617 loopTimeoutDuration, &outputShapes, &timing); in EvaluatePreparedModel() 645 std::tie(n, outputShapes, timing, std::ignore) = in EvaluatePreparedModel() 728 ASSERT_TRUE(outputShapes.size() == 0 || in EvaluatePreparedModel() 729 outputShapes.size() == testModel.main.outputIndexes.size()); in EvaluatePreparedModel() 740 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Callbacks.cpp | 65 convertExecutionGeneralResultsHelper(const hidl_vec<V1_2::OutputShape>& outputShapes, in convertExecutionGeneralResultsHelper() argument 67 return std::make_pair(NN_TRY(nn::convert(outputShapes)), NN_TRY(nn::convert(timing))); in convertExecutionGeneralResultsHelper() 85 ErrorStatus status, const hidl_vec<V1_2::OutputShape>& outputShapes, in executionCallback() argument 89 nn::convert(outputShapes).value_or(std::vector<nn::OutputShape>{}); in executionCallback() 95 convertExecutionGeneralResultsHelper(outputShapes, timing)); in executionCallback() 132 const hidl_vec<V1_2::OutputShape>& outputShapes, in notify_1_2() argument 134 mData.put(V1_2::utils::executionCallback(status, outputShapes, timing)); in notify_1_2() 139 const hidl_vec<V1_2::OutputShape>& outputShapes, in notify_1_3() argument 141 mData.put(executionCallback(status, outputShapes, timing)); in notify_1_3()
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | Callbacks.cpp | 56 convertExecutionGeneralResultsHelper(const hidl_vec<OutputShape>& outputShapes, in convertExecutionGeneralResultsHelper() argument 58 return std::make_pair(NN_TRY(nn::convert(outputShapes)), NN_TRY(nn::convert(timing))); in convertExecutionGeneralResultsHelper() 70 V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, const Timing& timing) { in executionCallback() argument 73 nn::convert(outputShapes).value_or(std::vector<nn::OutputShape>{}); in executionCallback() 79 convertExecutionGeneralResultsHelper(outputShapes, timing)); in executionCallback() 110 const hidl_vec<OutputShape>& outputShapes, in notify_1_2() argument 112 mData.put(executionCallback(status, outputShapes, timing)); in notify_1_2()
|
D | ExecutionBurstServer.cpp | 226 const auto& [outputShapes, timing] = result.value(); in task() 227 mResultChannelSender->send(V1_0::ErrorStatus::NONE, outputShapes, timing); in task() 229 const auto& [message, code, outputShapes] = result.error(); in task() 231 mResultChannelSender->send(convert(code).value(), convert(outputShapes).value(), in task() 261 const auto [outputShapes, timing] = in execute() 264 return std::make_pair(NN_TRY(makeExecutionFailure(convert(outputShapes))), in execute()
|
D | ExecutionBurstUtils.cpp | 144 const std::vector<V1_2::OutputShape>& outputShapes, in serialize() argument 147 size_t count = 2 + outputShapes.size(); in serialize() 148 for (const auto& outputShape : outputShapes) { in serialize() 160 .numberOfOperands = static_cast<uint32_t>(outputShapes.size())}); in serialize() 163 for (const auto& operand : outputShapes) { in serialize() 350 std::vector<V1_2::OutputShape> outputShapes; in deserialize() local 351 outputShapes.reserve(numberOfOperands); in deserialize() 382 outputShapes.push_back({.dimensions = dimensions, .isSufficient = isSufficient}); in deserialize() 400 return std::make_tuple(errorStatus, std::move(outputShapes), timing); in deserialize() 581 const std::vector<V1_2::OutputShape>& outputShapes, in send() argument [all …]
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | Callbacks.cpp | 82 const hidl_vec<OutputShape>& outputShapes, in notify_1_2() argument 86 if (outputShapes.size() == 0) { in notify_1_2() 93 if (outputShapes.size() != 0) { in notify_1_2() 100 notifyInternal(errorStatus, outputShapes, timing); in notify_1_2() 125 const hidl_vec<OutputShape>& outputShapes, in notifyInternal() argument 136 mOutputShapes = outputShapes; in notifyInternal()
|
D | ValidateRequest.cpp | 71 const auto& outputShapes = executionCallback->getOutputShapes(); in validate() local 74 ASSERT_EQ(outputShapes.size(), 0); in validate() 84 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, in validate() 87 EXPECT_EQ(outputShapes.size(), 0); in validate() 110 const auto [n, outputShapes, timing, fallback] = burst->compute(request, measure, keys); in validate() 113 EXPECT_EQ(outputShapes.size(), 0); in validate() 162 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, const Timing& timing) { in validateRequestFailure() argument 164 EXPECT_EQ(outputShapes.size(), 0); in validateRequestFailure()
|
D | GeneratedTestHarness.cpp | 190 hidl_vec<OutputShape>* outputShapes, in ExecutePreparedModel() argument 195 [&result, outputShapes, timing](ErrorStatus error, const hidl_vec<OutputShape>& shapes, in ExecutePreparedModel() 198 *outputShapes = shapes; in ExecutePreparedModel() 227 hidl_vec<OutputShape> outputShapes; in EvaluatePreparedModel() local 243 outputShapes = executionCallback->getOutputShapes(); in EvaluatePreparedModel() 253 preparedModel, request, testConfig.measureTiming, &outputShapes, &timing); in EvaluatePreparedModel() 275 std::tie(n, outputShapes, timing, std::ignore) = in EvaluatePreparedModel() 306 ASSERT_TRUE(outputShapes.size() == 0 || in EvaluatePreparedModel() 307 outputShapes.size() == testModel.main.outputIndexes.size()); in EvaluatePreparedModel() 313 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/include/1.2/ |
D | Callbacks.h | 232 Return<void> notify_1_2(V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, 236 Return<void> notify(V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, in notify() argument 238 return notify_1_2(status, outputShapes, timing); in notify() 311 void notifyInternal(V1_0::ErrorStatus errorStatus, const hidl_vec<OutputShape>& outputShapes,
|
/hardware/interfaces/neuralnetworks/utils/adapter/src/ |
D | PreparedModel.cpp | 102 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument 105 const auto hidlOutputShapes = V1_2::utils::convert(outputShapes).value(); in notify() 115 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument 118 const auto hidlOutputShapes = V1_3::utils::convert(outputShapes).value(); in notify() 130 const auto [message, status, outputShapes] = std::move(result).error(); in notify() 132 notify(callback, status, outputShapes, {}); in notify() 134 const auto [outputShapes, timing] = std::move(result).value(); in notify() 135 notify(callback, nn::ErrorStatus::NONE, outputShapes, timing); in notify() 230 const auto [outputShapes, timing] = in executeSynchronously() 233 auto hidlOutputShapes = NN_TRY(utils::makeExecutionFailure(V1_2::utils::convert(outputShapes))); in executeSynchronously() [all …]
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | QualityOfServiceTests.cpp | 181 std::move(executionResult.outputShapes), executionResult.timing}); in executeSynchronously() 219 std::move(executionResult.outputShapes), executionResult.timing}); in executeBurst() 232 const auto& [status, outputShapes, timing] = results.value(); in runExecutionTest() 257 ASSERT_TRUE(outputShapes.size() == 0 || in runExecutionTest() 258 outputShapes.size() == testModel.main.outputIndexes.size()); in runExecutionTest() 261 for (uint32_t i = 0; i < outputShapes.size(); i++) { in runExecutionTest() 262 EXPECT_TRUE(outputShapes[i].isSufficient); in runExecutionTest() 266 const std::vector<int32_t>& actual = outputShapes[i].dimensions; in runExecutionTest()
|
D | GeneratedTestHarness.cpp | 562 std::vector<OutputShape> outputShapes; in EvaluatePreparedModel() local 579 outputShapes = std::move(executionResult.outputShapes); in EvaluatePreparedModel() 618 outputShapes = std::move(executionResult.outputShapes); in EvaluatePreparedModel() 704 ASSERT_TRUE(outputShapes.size() == 0 || in EvaluatePreparedModel() 705 outputShapes.size() == testModel.main.outputIndexes.size()); in EvaluatePreparedModel() 716 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel() 725 ASSERT_EQ(outputShapes.size(), testModel.main.outputIndexes.size()); in EvaluatePreparedModel() 730 for (uint32_t i = 0; i < outputShapes.size(); i++) { in EvaluatePreparedModel() 731 ASSERT_EQ(outputShapes[i].isSufficient, i != kInsufficientOutputIndex); in EvaluatePreparedModel() 732 const auto& actual = outputShapes[i].dimensions; in EvaluatePreparedModel() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | Callbacks.h | 58 ErrorStatus status, const hidl_vec<V1_2::OutputShape>& outputShapes, 88 const hidl_vec<V1_2::OutputShape>& outputShapes, 90 Return<void> notify_1_3(ErrorStatus status, const hidl_vec<V1_2::OutputShape>& outputShapes,
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/include/1.3/ |
D | Callbacks.h | 263 const hidl_vec<V1_2::OutputShape>& outputShapes, 301 const hidl_vec<V1_2::OutputShape>& outputShapes, 378 hidl_vec<V1_2::OutputShape> outputShapes, V1_2::Timing timing);
|
/hardware/interfaces/neuralnetworks/1.2/ |
D | IExecutionCallback.hal | 47 * @param outputShapes A list of shape information of model output operands. 48 * The index into "outputShapes" corresponds with to index 50 * outputShapes must be empty unless the status is either 58 oneway notify_1_2(ErrorStatus status, vec<OutputShape> outputShapes, Timing timing);
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | PreparedModel.cpp | 47 const std::vector<OutputShape>& outputShapes, const Timing& timing) { in convertExecutionResults() argument 48 return std::make_pair(NN_TRY(nn::convert(outputShapes)), NN_TRY(nn::convert(timing))); in convertExecutionResults() 109 nn::convert(executionResult.outputShapes).value_or(std::vector<nn::OutputShape>{}); in executeInternal() 113 auto [outputShapes, timing] = NN_TRY(hal::utils::makeExecutionFailure( in executeInternal() 114 convertExecutionResults(executionResult.outputShapes, executionResult.timing))); in executeInternal() 119 return std::make_pair(std::move(outputShapes), timing); in executeInternal()
|
D | Burst.cpp | 73 const std::vector<OutputShape>& outputShapes, const Timing& timing) { in convertExecutionResults() argument 74 return std::make_pair(NN_TRY(nn::convert(outputShapes)), NN_TRY(nn::convert(timing))); in convertExecutionResults() 232 nn::convert(executionResult.outputShapes).value_or(std::vector<nn::OutputShape>{}); in executeInternal() 236 auto [outputShapes, timing] = NN_TRY(hal::utils::makeExecutionFailure( in executeInternal() 237 convertExecutionResults(executionResult.outputShapes, executionResult.timing))); in executeInternal() 242 return std::make_pair(std::move(outputShapes), timing); in executeInternal()
|
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/ |
D | Callbacks.h | 49 V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, const Timing& timing); 76 Return<void> notify_1_2(V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes,
|
D | ExecutionBurstUtils.h | 93 const std::vector<OutputShape>& outputShapes, Timing timing); 231 void send(V1_0::ErrorStatus errorStatus, const std::vector<OutputShape>& outputShapes,
|
/hardware/interfaces/neuralnetworks/1.3/ |
D | IExecutionCallback.hal | 53 * @param outputShapes A list of shape information of model output operands. 54 * The index into "outputShapes" corresponds with to index 56 * outputShapes must be empty unless the status is either 64 oneway notify_1_3(ErrorStatus status, vec<OutputShape> outputShapes, Timing timing);
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 android.hardware.neuralnetworks.OutputShape[] outputShapes;
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 OutputShape[] outputShapes;
|