Home
last modified time | relevance | path

Searched refs:measureTiming (Results 1 – 14 of 14) sorted by relevance

/packages/modules/NeuralNetworks/shim_and_sl/
DShimPreparedModel.cpp198 bool measureTiming) in ShimFencedExecutionCallback() argument
202 mMeasureTiming(measureTiming) {} in ShimFencedExecutionCallback()
261 bool measureTiming, FencedExecutionResult* fencedExecutionResult) { in executeFencedInternal() argument
296 execution, std::move(e), requestMemoryPools, measureTiming); in executeFencedInternal()
303 bool measureTiming, int64_t deadlineNs, int64_t loopTimeoutDurationNs, int64_t durationNs, in executeFencedCommon() argument
318 parseInputs(request, measureTiming, deadlineNs, loopTimeoutDurationNs, execution.get(), in executeFencedCommon()
324 durationNs, measureTiming, fencedExecutionResult); in executeFencedCommon()
329 const std::vector<::ndk::ScopedFileDescriptor>& waitFor, bool measureTiming, in executeFenced() argument
332 return executeFencedCommon(request, waitFor, measureTiming, deadlineNs, loopTimeoutDurationNs, in executeFenced()
338 const std::shared_ptr<::android::nn::sl_wrapper::Execution>& execution, bool measureTiming, in executeSynchronouslyInternal() argument
[all …]
/packages/modules/NeuralNetworks/driver/sample_aidl/
DSampleDriverAidl.cpp397 const aidl_hal::Request& halRequest, bool measureTiming, int64_t halDeadlineNs, in executeSynchronously() argument
404 if (measureTiming) driverStart = Clock::now(); in executeSynchronously()
450 if (measureTiming) deviceStart = Clock::now(); in executeSynchronously()
452 if (measureTiming) deviceEnd = Clock::now(); in executeSynchronously()
472 if (measureTiming && executionStatus == aidl_hal::ErrorStatus::NONE) { in executeSynchronously()
486 bool measureTiming, int64_t halDeadlineNs, int64_t loopTimeoutDurationNs, in executeFenced() argument
493 if (measureTiming) driverStart = Clock::now(); in executeFenced()
546 if (measureTiming) driverStartAfterFence = Clock::now(); in executeFenced()
565 if (measureTiming) deviceStart = Clock::now(); in executeFenced()
567 if (measureTiming) deviceEnd = Clock::now(); in executeFenced()
[all …]
DSampleDriverAidl.h118 ndk::ScopedAStatus executeSynchronously(const aidl_hal::Request& request, bool measureTiming,
123 bool measureTiming, int64_t deadlineNs,
177 bool measureTiming, int64_t deadlineNs,
194 bool measureTiming, int64_t loopTimeoutDurationNs) in SampleExecution() argument
197 kMeasureTiming(measureTiming), in SampleExecution()
/packages/modules/NeuralNetworks/shim_and_sl/include/
DShimPreparedModel.h49 ::ndk::ScopedAStatus executeSynchronously(const Request& request, bool measureTiming,
54 bool measureTiming, int64_t deadlineNs,
85 const Request& request, bool measureTiming, int64_t deadlineNs,
91 bool measureTiming, int64_t deadlineNs, int64_t loopTimeoutDurationNs,
/packages/modules/NeuralNetworks/runtime/
DExecutionBuilder.cpp113 static MeasureTiming measureTiming(const ExecutionBuilder* execution) { in measureTiming() function
114 return execution->measureTiming() ? MeasureTiming::YES : MeasureTiming::NO; in measureTiming()
1494 const MeasureTiming measure = measureTiming(mExecutionBuilder); in getReusableExecution()
1526 const MeasureTiming measure = measureTiming(mExecutionBuilder); in compute()
1563 const MeasureTiming measure = measureTiming(mExecutionBuilder); in computeFenced()
1640 const MeasureTiming measure = measureTiming(mExecutionBuilder); in computeOnCpuFallback()
DTelemetry.cpp208 if (e->measureTiming()) { in onExecutionFinish()
DExecutionBuilder.h111 bool measureTiming() const { return mMeasureTiming; } in measureTiming() function
/packages/modules/NeuralNetworks/common/types/include/nnapi/
DValidation.h49 Result<Version> validate(const MeasureTiming& measureTiming);
DTypeUtils.h92 std::ostream& operator<<(std::ostream& os, const MeasureTiming& measureTiming);
/packages/modules/NeuralNetworks/common/
DExecutionBurstServer.cpp300 if (index >= data.size() || data.at(index).getDiscriminator() != discriminator::measureTiming) { in deserialize()
306 const V1_2::MeasureTiming measure = data.at(index).measureTiming(); in deserialize()
DExecutionBurstController.cpp143 datum.measureTiming(measure); in serialize()
/packages/modules/NeuralNetworks/common/types/src/
DTypeUtils.cpp349 std::ostream& operator<<(std::ostream& os, const MeasureTiming& measureTiming) { in operator <<() argument
350 switch (measureTiming) { in operator <<()
356 return os << "MeasureTiming{" << underlyingType(measureTiming) << "}"; in operator <<()
DValidation.cpp132 Result<Version> validateMeasureTiming(const MeasureTiming& measureTiming) { in validateMeasureTiming() argument
133 switch (measureTiming) { in validateMeasureTiming()
140 NN_RET_CHECK_FAIL() << "Invalid MeasureTiming " << measureTiming; in validateMeasureTiming()
1838 Result<Version> validate(const MeasureTiming& measureTiming) { in validate() argument
1839 return validateMeasureTiming(measureTiming); in validate()
/packages/modules/NeuralNetworks/runtime/test/
DTestIntrospectionControl.cpp181 int prepareForExecution(bool measureTiming = false) { in prepareForExecution() argument
191 if (measureTiming) { in prepareForExecution()