Home
last modified time | relevance | path

Searched refs:timing (Results 1 – 25 of 47) sorted by relevance

12

/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DValidateRequest.cpp37 static bool badTiming(Timing timing) { in badTiming() argument
38 return timing.timeOnDevice == UINT64_MAX && timing.timeInDriver == UINT64_MAX; in badTiming()
72 Timing timing = executionCallback->getTiming(); in validate() local
75 ASSERT_TRUE(badTiming(timing)); in validate()
85 const Timing& timing) { in validate() argument
88 EXPECT_TRUE(badTiming(timing)); in validate()
110 const auto [n, outputShapes, timing, fallback] = burst->compute(request, measure, keys); in validate()
114 EXPECT_TRUE(badTiming(timing)); in validate()
162 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, const Timing& timing) { in validateRequestFailure() argument
165 EXPECT_TRUE(badTiming(timing)); in validateRequestFailure()
DGeneratedTestHarness.cpp191 Timing* timing) { in ExecutePreparedModel() argument
195 [&result, outputShapes, timing](ErrorStatus error, const hidl_vec<OutputShape>& shapes, in ExecutePreparedModel()
199 *timing = time; in ExecutePreparedModel()
228 Timing timing; in EvaluatePreparedModel() local
244 timing = executionCallback->getTiming(); in EvaluatePreparedModel()
253 preparedModel, request, testConfig.measureTiming, &outputShapes, &timing); in EvaluatePreparedModel()
275 std::tie(n, outputShapes, timing, std::ignore) = in EvaluatePreparedModel()
293 EXPECT_EQ(UINT64_MAX, timing.timeOnDevice); in EvaluatePreparedModel()
294 EXPECT_EQ(UINT64_MAX, timing.timeInDriver); in EvaluatePreparedModel()
296 if (timing.timeOnDevice != UINT64_MAX && timing.timeInDriver != UINT64_MAX) { in EvaluatePreparedModel()
[all …]
DCallbacks.cpp83 const Timing& timing) { in notify_1_2() argument
100 notifyInternal(errorStatus, outputShapes, timing); in notify_1_2()
126 const Timing& timing) { in notifyInternal() argument
137 mTiming = timing; in notifyInternal()
DValidateBurst.cpp53 static bool badTiming(Timing timing) { in badTiming() argument
54 return timing.timeOnDevice == UINT64_MAX && timing.timeInDriver == UINT64_MAX; in badTiming()
141 const auto [status, outputShapes, timing] = std::move(*results); in validate()
144 EXPECT_TRUE(badTiming(timing)); in validate()
/hardware/interfaces/neuralnetworks/1.3/vts/functional/
DValidateRequest.cpp41 static bool badTiming(Timing timing) { in badTiming() argument
42 return timing.timeOnDevice == UINT64_MAX && timing.timeInDriver == UINT64_MAX; in badTiming()
76 Timing timing = executionCallback->getTiming(); in validate() local
79 ASSERT_TRUE(badTiming(timing)); in validate()
89 const Timing& timing) { in validate() argument
92 EXPECT_TRUE(badTiming(timing)); in validate()
118 const auto [n, outputShapes, timing, fallback] = burst->compute(request10, measure, keys); in validate()
122 EXPECT_TRUE(badTiming(timing)); in validate()
184 [](ErrorStatus error, const hidl_vec<OutputShape>& outputShapes, const Timing& timing) { in validateRequestFailure() argument
187 EXPECT_TRUE(badTiming(timing)); in validateRequestFailure()
DCallbacks.cpp93 const Timing& timing) { in notify_1_2() argument
94 return notifyInternal(static_cast<ErrorStatus>(errorStatus), outputShapes, timing); in notify_1_2()
99 const Timing& timing) { 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
132 timing = kNoTiming; in notifyInternal()
141 timing = kNoTiming; in notifyInternal()
156 mTiming = timing; in notifyInternal()
DQualityOfServiceTests.cpp187 const Timing timing = callback->getTiming(); in executeAsynchronously() local
190 return Results{status, std::move(outputShapes), timing}; in executeAsynchronously()
202 const Timing& timing) { in executeSynchronously() argument
203 results.emplace(status, outputShapes, timing); in executeSynchronously()
225 const auto& [status, outputShapes, timing] = results.value(); in runExecutionTest()
228 EXPECT_EQ(UINT64_MAX, timing.timeOnDevice); in runExecutionTest()
229 EXPECT_EQ(UINT64_MAX, timing.timeInDriver); in runExecutionTest()
DGeneratedTestHarness.cpp530 Timing* timing) { in ExecutePreparedModel() argument
534 [&result, outputShapes, timing](ErrorStatus error, const hidl_vec<OutputShape>& shapes, in ExecutePreparedModel()
538 *timing = time; in ExecutePreparedModel()
590 Timing timing; in EvaluatePreparedModel() local
607 timing = executionCallback->getTiming(); in EvaluatePreparedModel()
617 loopTimeoutDuration, &outputShapes, &timing); in EvaluatePreparedModel()
645 std::tie(n, outputShapes, timing, std::ignore) = in EvaluatePreparedModel()
671 timing = {UINT64_MAX, UINT64_MAX}; in EvaluatePreparedModel()
684 [&executionStatus, &timing](ErrorStatus error, Timing t, Timing) { in EvaluatePreparedModel()
686 timing = t; in EvaluatePreparedModel()
[all …]
DValidateBurst.cpp58 static bool badTiming(Timing timing) { in badTiming() argument
59 return timing.timeOnDevice == UINT64_MAX && timing.timeInDriver == UINT64_MAX; in badTiming()
147 const auto [status, outputShapes, timing] = std::move(*results); in validate()
150 EXPECT_TRUE(badTiming(timing)); in validate()
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DCallbacks.cpp66 const V1_2::Timing& timing) { in convertExecutionGeneralResultsHelper() argument
67 return std::make_pair(NN_TRY(nn::convert(outputShapes)), NN_TRY(nn::convert(timing))); in convertExecutionGeneralResultsHelper()
86 const V1_2::Timing& timing) { in executionCallback() argument
95 convertExecutionGeneralResultsHelper(outputShapes, timing)); in executionCallback()
133 const V1_2::Timing& timing) { in notify_1_2() argument
134 mData.put(V1_2::utils::executionCallback(status, outputShapes, timing)); in notify_1_2()
140 const V1_2::Timing& timing) { in notify_1_3() argument
141 mData.put(executionCallback(status, outputShapes, timing)); in notify_1_3()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DCallbacks.cpp57 const Timing& timing) { 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
79 convertExecutionGeneralResultsHelper(outputShapes, timing)); in executionCallback()
111 const Timing& timing) { in notify_1_2() argument
112 mData.put(executionCallback(status, outputShapes, timing)); in notify_1_2()
DConversions.cpp236 GeneralResult<Timing> unvalidatedConvert(const hal::V1_2::Timing& timing) { in unvalidatedConvert() argument
248 return Timing{.timeOnDevice = convertTiming(timing.timeOnDevice), in unvalidatedConvert()
249 .timeInDriver = convertTiming(timing.timeInDriver)}; in unvalidatedConvert()
292 GeneralResult<Timing> convert(const hal::V1_2::Timing& timing) { in convert() argument
293 return validatedConvert(timing); in convert()
520 nn::GeneralResult<Timing> unvalidatedConvert(const nn::Timing& timing) { in unvalidatedConvert() argument
528 return Timing{.timeOnDevice = convertTiming(timing.timeOnDevice), in unvalidatedConvert()
529 .timeInDriver = convertTiming(timing.timeInDriver)}; in unvalidatedConvert()
571 nn::GeneralResult<Timing> convert(const nn::Timing& timing) { in convert() argument
572 return validatedConvert(timing); in convert()
DExecutionBurstServer.cpp226 const auto& [outputShapes, timing] = result.value(); in task()
227 mResultChannelSender->send(V1_0::ErrorStatus::NONE, outputShapes, timing); in task()
261 const auto [outputShapes, timing] = in execute()
265 NN_TRY(makeExecutionFailure(convert(timing)))); in execute()
/hardware/interfaces/neuralnetworks/1.2/vts/functional/include/1.2/
DCallbacks.h233 const Timing& timing) override;
237 const Timing& timing) { in notify() argument
238 return notify_1_2(status, outputShapes, timing); in notify()
312 const Timing& timing);
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DCallbacks.h59 const V1_2::Timing& timing);
89 const V1_2::Timing& timing) override;
91 const V1_2::Timing& timing) override;
/hardware/interfaces/neuralnetworks/1.3/vts/functional/include/1.3/
DCallbacks.h264 const V1_2::Timing& timing) override;
302 const V1_2::Timing& timing) override;
378 hidl_vec<V1_2::OutputShape> outputShapes, V1_2::Timing timing);
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DPreparedModel.cpp102 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument
106 const auto hidlTiming = V1_2::utils::convert(timing).value(); in notify()
115 const std::vector<nn::OutputShape>& outputShapes, const nn::Timing& timing) { in notify() argument
119 const auto hidlTiming = V1_3::utils::convert(timing).value(); 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()
234 const auto hidlTiming = NN_TRY(utils::makeExecutionFailure(V1_2::utils::convert(timing))); in executeSynchronously()
248 const auto [outputShapes, timing] = in executeSynchronously_1_3()
252 const auto hidlTiming = NN_TRY(utils::makeExecutionFailure(V1_3::utils::convert(timing))); in executeSynchronously_1_3()
[all …]
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DCallbacks.h49 V1_0::ErrorStatus status, const hidl_vec<OutputShape>& outputShapes, const Timing& timing);
77 const Timing& timing) override;
DConversions.h44 GeneralResult<Timing> unvalidatedConvert(const hal::V1_2::Timing& timing);
54 GeneralResult<Timing> convert(const hal::V1_2::Timing& timing);
85 nn::GeneralResult<Timing> unvalidatedConvert(const nn::Timing& timing);
95 nn::GeneralResult<Timing> convert(const nn::Timing& timing);
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DPreparedModel.cpp47 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()
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()
DBurst.cpp73 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()
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/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
DExecutionResult.aidl39 android.hardware.neuralnetworks.Timing timing;
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/
DExecutionResult.aidl44 Timing timing;
/hardware/interfaces/neuralnetworks/aidl/vts/functional/
DQualityOfServiceTests.cpp181 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()
235 EXPECT_EQ(timing, kNoTiming); in runExecutionTest()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DConversions.h84 GeneralResult<Timing> unvalidatedConvert(const aidl_hal::Timing& timing);
115 GeneralResult<Timing> convert(const aidl_hal::Timing& timing);
158 nn::GeneralResult<Timing> unvalidatedConvert(const nn::Timing& timing);
176 nn::GeneralResult<Timing> convert(const nn::Timing& timing);

12