/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()
|
/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() 94 return convertExecutionGeneralResultsHelper(outputShapes, timing); in executionCallback() 131 const hidl_vec<V1_2::OutputShape>& outputShapes, in notify_1_2() argument 133 mData.put(V1_2::utils::executionCallback(status, outputShapes, timing)); in notify_1_2() 138 const hidl_vec<V1_2::OutputShape>& outputShapes, in notify_1_3() argument 140 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() 78 return convertExecutionGeneralResultsHelper(outputShapes, timing); in executionCallback() 109 const hidl_vec<OutputShape>& outputShapes, in notify_1_2() argument 111 mData.put(executionCallback(status, outputShapes, timing)); in notify_1_2()
|
D | BurstUtils.cpp | 142 const std::vector<V1_2::OutputShape>& outputShapes, in serialize() argument 145 size_t count = 2 + outputShapes.size(); in serialize() 146 for (const auto& outputShape : outputShapes) { in serialize() 158 .numberOfOperands = static_cast<uint32_t>(outputShapes.size())}); in serialize() 161 for (const auto& operand : outputShapes) { in serialize() 355 std::vector<V1_2::OutputShape> outputShapes; in deserialize() local 356 outputShapes.reserve(numberOfOperands); in deserialize() 389 outputShapes.push_back({.dimensions = dimensions, .isSufficient = isSufficient}); in deserialize() 408 return std::make_tuple(errorStatus, std::move(outputShapes), timing); in deserialize() 589 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/utils/adapter/hidl/src/ |
D | PreparedModel.cpp | 100 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument 103 const auto hidlOutputShapes = V1_2::utils::convert(outputShapes).value(); in notify() 113 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument 116 const auto hidlOutputShapes = V1_3::utils::convert(outputShapes).value(); in notify() 128 const auto [message, status, outputShapes] = std::move(result).error(); in notify() 130 notify(callback, status, outputShapes, {}); in notify() 132 const auto [outputShapes, timing] = std::move(result).value(); in notify() 133 notify(callback, nn::ErrorStatus::NONE, outputShapes, timing); in notify() 149 const auto& [message, code, outputShapes] = result.error(); in execute() 170 const auto& [message, code, outputShapes] = result.error(); in execute_1_2() [all …]
|
D | Burst.cpp | 219 const auto& [outputShapes, timing] = result.value(); in task() 220 mResultChannelSender->send(V1_0::ErrorStatus::NONE, outputShapes, timing); in task() 222 const auto& [message, code, outputShapes] = result.error(); in task() 225 V1_2::utils::convert(outputShapes).value(), kTiming); in task() 252 const auto [outputShapes, timing] = in execute() 255 return std::make_pair(NN_TRY(V1_2::utils::convert(outputShapes)), in execute()
|
/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/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()
|
/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.3/utils/include/nnapi/hal/1.3/ |
D | Callbacks.h | 59 ErrorStatus status, const hidl_vec<V1_2::OutputShape>& outputShapes, 89 const hidl_vec<V1_2::OutputShape>& outputShapes, 91 Return<void> notify_1_3(ErrorStatus status, const hidl_vec<V1_2::OutputShape>& outputShapes,
|
/hardware/interfaces/neuralnetworks/utils/adapter/aidl/src/ |
D | PreparedModel.cpp | 137 const auto& [message, code, outputShapes] = result.error(); in executeSynchronously() 140 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously() 144 const auto& [outputShapes, timing] = NN_TRY(result); in executeSynchronously() 146 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously() 201 const auto& [message, code, outputShapes] = result.error(); in executeSynchronously() 204 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously() 208 const auto& [outputShapes, timing] = NN_TRY(result); in executeSynchronously() 210 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously()
|
D | Burst.cpp | 120 const auto& [message, code, outputShapes] = result.error(); in executeSynchronously() 122 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously() 126 const auto& [outputShapes, timing] = NN_TRY(result); in executeSynchronously() 128 .outputShapes = utils::convert(outputShapes).value(), in executeSynchronously()
|
/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/1.2/utils/include/nnapi/hal/1.2/ |
D | Callbacks.h | 50 V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, const Timing& timing); 77 Return<void> notify_1_2(V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes,
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/4/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 android.hardware.neuralnetworks.OutputShape[] outputShapes;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/3/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 android.hardware.neuralnetworks.OutputShape[] outputShapes;
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 android.hardware.neuralnetworks.OutputShape[] outputShapes;
|
/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/aidl_api/android.hardware.neuralnetworks/2/android/hardware/neuralnetworks/ |
D | ExecutionResult.aidl | 38 android.hardware.neuralnetworks.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);
|