Home
last modified time | relevance | path

Searched refs:measure (Results 1 – 25 of 55) sorted by relevance

123

/hardware/interfaces/neuralnetworks/utils/common/src/
DResilientPreparedModel.cpp107 ResilientPreparedModel::execute(const nn::Request& request, nn::MeasureTiming measure, in execute() argument
110 const auto fn = [&request, measure, &deadline, in execute()
112 return preparedModel.execute(request, measure, deadline, loopTimeoutDuration); in execute()
120 nn::MeasureTiming measure, in executeFenced() argument
124 const auto fn = [&request, &waitFor, measure, &deadline, &loopTimeoutDuration, in executeFenced()
126 return preparedModel.executeFenced(request, waitFor, measure, deadline, loopTimeoutDuration, in executeFenced()
133 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
138 [preparedModel = std::move(self), request, measure, loopTimeoutDuration] { in createReusableExecution()
139 … return preparedModel->createReusableExecutionInternal(request, measure, loopTimeoutDuration); in createReusableExecution()
143 return createReusableExecutionInternal(request, measure, loopTimeoutDuration); in createReusableExecution()
[all …]
DResilientBurst.cpp107 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
110 const auto fn = [&request, measure, deadline, loopTimeoutDuration](const nn::IBurst& burst) { in execute()
111 return burst.execute(request, measure, deadline, loopTimeoutDuration); in execute()
117 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
122 [burst = std::move(self), request, measure, loopTimeoutDuration] { in createReusableExecution()
123 return burst->createReusableExecutionInternal(request, measure, loopTimeoutDuration); in createReusableExecution()
127 return createReusableExecutionInternal(request, measure, loopTimeoutDuration); in createReusableExecution()
132 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecutionInternal() argument
137 const auto fn = [&request, measure, &loopTimeoutDuration](const nn::IBurst& burst) { in createReusableExecutionInternal()
138 return burst.createReusableExecution(request, measure, loopTimeoutDuration); in createReusableExecutionInternal()
/hardware/interfaces/neuralnetworks/1.2/utils/src/
DPreparedModel.cpp68 PreparedModel::executeSynchronously(const V1_0::Request& request, MeasureTiming measure) const { in executeSynchronously()
71 const auto ret = kPreparedModel->executeSynchronously(request, measure, cb); in executeSynchronously()
78 PreparedModel::executeAsynchronously(const V1_0::Request& request, MeasureTiming measure) const { in executeAsynchronously()
82 const auto ret = kPreparedModel->execute_1_2(request, measure, cb); in executeAsynchronously()
92 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
104 const auto hidlMeasure = NN_TRY(hal::utils::makeExecutionFailure(convert(measure))); in execute()
110 PreparedModel::executeInternal(const V1_0::Request& request, MeasureTiming measure, in executeInternal() argument
116 auto result = kExecuteSynchronously ? executeSynchronously(request, measure) in executeInternal()
117 : executeAsynchronously(request, measure); in executeInternal()
138 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
[all …]
/hardware/interfaces/neuralnetworks/1.3/utils/src/
DPreparedModel.cpp108 PreparedModel::executeSynchronously(const Request& request, V1_2::MeasureTiming measure, in executeSynchronously() argument
113 const auto ret = kPreparedModel->executeSynchronously_1_3(request, measure, deadline, in executeSynchronously()
121 PreparedModel::executeAsynchronously(const Request& request, V1_2::MeasureTiming measure, in executeAsynchronously() argument
128 kPreparedModel->execute_1_3(request, measure, deadline, loopTimeoutDuration, cb); in executeAsynchronously()
138 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
150 const auto hidlMeasure = NN_TRY(hal::utils::makeExecutionFailure(convert(measure))); in execute()
160 PreparedModel::executeInternal(const Request& request, V1_2::MeasureTiming measure, in executeInternal() argument
169 ? executeSynchronously(request, measure, deadline, loopTimeoutDuration) in executeInternal()
170 : executeAsynchronously(request, measure, deadline, loopTimeoutDuration); in executeInternal()
181 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, in executeFenced() argument
[all …]
DExecution.cpp45 hal::utils::RequestRelocation relocation, V1_2::MeasureTiming measure, in create() argument
52 std::move(request), std::move(relocation), measure, in create()
58 hal::utils::RequestRelocation relocation, V1_2::MeasureTiming measure, in Execution() argument
63 kMeasure(measure), in Execution()
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/
DPreparedModel.h50 const nn::Request& request, nn::MeasureTiming measure,
56 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
61 const nn::Request& request, nn::MeasureTiming measure,
69 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
75 V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
82 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
85 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
DExecution.h42 hal::utils::RequestRelocation relocation, V1_2::MeasureTiming measure,
47 V1_2::MeasureTiming measure, OptionalTimeoutDuration loopTimeoutDuration);
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/
DPreparedModel.h51 const nn::Request& request, nn::MeasureTiming measure,
57 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
62 const nn::Request& request, nn::MeasureTiming measure,
70 const V1_0::Request& request, MeasureTiming measure,
75 const V1_0::Request& request, MeasureTiming measure) const;
77 const V1_0::Request& request, MeasureTiming measure) const;
/hardware/interfaces/neuralnetworks/utils/adapter/include/nnapi/hal/
DPreparedModel.h46 Return<V1_0::ErrorStatus> execute_1_2(const V1_0::Request& request, V1_2::MeasureTiming measure,
48 Return<V1_3::ErrorStatus> execute_1_3(const V1_3::Request& request, V1_2::MeasureTiming measure,
52 Return<void> executeSynchronously(const V1_0::Request& request, V1_2::MeasureTiming measure,
54 Return<void> executeSynchronously_1_3(const V1_3::Request& request, V1_2::MeasureTiming measure,
64 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline,
/hardware/interfaces/neuralnetworks/1.0/utils/src/
DBurst.cpp52 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
55 return kPreparedModel->execute(request, measure, deadline, loopTimeoutDuration); in execute()
59 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
61 return kPreparedModel->createReusableExecution(request, measure, loopTimeoutDuration); in createReusableExecution()
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/
DPreparedModel.h50 const nn::Request& request, nn::MeasureTiming measure,
56 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
61 const nn::Request& request, nn::MeasureTiming measure,
69 const Request& request, bool measure, int64_t deadline, int64_t loopTimeoutDuration,
74 const std::vector<ndk::ScopedFileDescriptor>& waitFor, bool measure,
DBurst.h99 const nn::Request& request, nn::MeasureTiming measure,
105 const nn::Request& request, nn::MeasureTiming measure,
110 bool measure, int64_t deadline, int64_t loopTimeoutDuration,
/hardware/interfaces/neuralnetworks/utils/common/test/
DMockPreparedModel.h29 (const Request& request, MeasureTiming measure, const OptionalTimePoint& deadline,
34 MeasureTiming measure, const OptionalTimePoint& deadline,
39 (const nn::Request& request, nn::MeasureTiming measure,
/hardware/interfaces/neuralnetworks/1.3/utils/test/
DMockPreparedModel.h45 (const V1_0::Request& request, V1_2::MeasureTiming measure,
49 (const V1_0::Request& request, V1_2::MeasureTiming measure,
61 (const V1_3::Request& request, V1_2::MeasureTiming measure,
67 (const V1_3::Request& request, V1_2::MeasureTiming measure,
74 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline,
/hardware/interfaces/neuralnetworks/utils/adapter/src/
DPreparedModel.cpp166 V1_2::MeasureTiming measure, in execute_1_2() argument
173 const auto nnMeasure = NN_TRY(convertInput(measure)); in execute_1_2()
193 V1_2::MeasureTiming measure, in execute_1_3() argument
202 const auto nnMeasure = NN_TRY(convertInput(measure)); in execute_1_3()
226 V1_2::MeasureTiming measure) { in executeSynchronously() argument
228 const auto nnMeasure = NN_TRY(utils::makeExecutionFailure(convertInput(measure))); in executeSynchronously()
240 V1_2::MeasureTiming measure, const V1_3::OptionalTimePoint& deadline, in executeSynchronously_1_3() argument
243 const auto nnMeasure = NN_TRY(utils::makeExecutionFailure(convertInput(measure))); in executeSynchronously_1_3()
271 const hidl_vec<hidl_handle>& waitFor, V1_2::MeasureTiming measure, in executeFenced() argument
277 const auto nnMeasure = NN_TRY(convertInput(measure)); in executeFenced()
[all …]
/hardware/interfaces/neuralnetworks/aidl/utils/src/
DPreparedModel.cpp75 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
87 const auto aidlMeasure = NN_TRY(hal::utils::makeExecutionFailure(convert(measure))); in execute()
96 PreparedModel::executeInternal(const Request& request, bool measure, int64_t deadline, in executeInternal() argument
104 const auto ret = kPreparedModel->executeSynchronously(request, measure, deadline, in executeInternal()
124 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline, in executeFenced() argument
136 const auto aidlMeasure = NN_TRY(convert(measure)); in executeFenced()
148 bool measure, int64_t deadline, int64_t loopTimeoutDuration, in executeFencedInternal() argument
157 kPreparedModel->executeFenced(request, waitFor, measure, deadline, loopTimeoutDuration, in executeFencedInternal()
196 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
206 auto aidlMeasure = NN_TRY(convert(measure)); in createReusableExecution()
DExecution.cpp41 hal::utils::RequestRelocation relocation, bool measure, int64_t loopTimeoutDuration) { in create() argument
47 std::move(request), std::move(relocation), measure, in create()
53 hal::utils::RequestRelocation relocation, bool measure, in Execution() argument
58 kMeasure(measure), in Execution()
DBurst.cpp46 std::vector<int64_t> memoryIdentifierTokens, bool measure, int64_t loopTimeoutDuration,
51 std::vector<int64_t> memoryIdentifierTokens, bool measure,
173 const nn::Request& request, nn::MeasureTiming measure, in execute() argument
185 const auto aidlMeasure = NN_TRY(hal::utils::makeExecutionFailure(convert(measure))); in execute()
212 const Request& request, const std::vector<int64_t>& memoryIdentifierTokens, bool measure, in executeInternal() argument
227 const auto ret = kBurst->executeSynchronously(request, memoryIdentifierTokens, measure, in executeInternal()
246 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() argument
256 const auto aidlMeasure = NN_TRY(convert(measure)); in createReusableExecution()
283 std::vector<int64_t> memoryIdentifierTokens, bool measure, int64_t loopTimeoutDuration, in create() argument
292 std::move(memoryIdentifierTokens), measure, loopTimeoutDuration, std::move(relocation), in create()
[all …]
/hardware/interfaces/neuralnetworks/utils/common/include/nnapi/hal/
DInvalidPreparedModel.h33 const nn::Request& request, nn::MeasureTiming measure,
39 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
44 const nn::Request& request, nn::MeasureTiming measure,
DResilientPreparedModel.h51 const nn::Request& request, nn::MeasureTiming measure,
57 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
62 const nn::Request& request, nn::MeasureTiming measure,
72 const nn::Request& request, nn::MeasureTiming measure,
DResilientBurst.h50 const nn::Request& request, nn::MeasureTiming measure,
55 const nn::Request& request, nn::MeasureTiming measure,
61 const nn::Request& request, nn::MeasureTiming measure,
DInvalidBurst.h35 const nn::Request& request, nn::MeasureTiming measure,
40 const nn::Request& request, nn::MeasureTiming measure,
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/
DPreparedModel.h50 const nn::Request& request, nn::MeasureTiming measure,
56 nn::MeasureTiming measure, const nn::OptionalTimePoint& deadline,
61 const nn::Request& request, nn::MeasureTiming measure,
DBurst.h47 const nn::Request& request, nn::MeasureTiming measure,
52 const nn::Request& request, nn::MeasureTiming measure,
/hardware/interfaces/neuralnetworks/1.2/vts/functional/
DValidateRequest.cpp57 MeasureTiming measure = (hash & 1) ? MeasureTiming::YES : MeasureTiming::NO; in validate() local
65 preparedModel->execute_1_2(request, measure, executionCallback); in validate()
83 request, measure, in validate()
110 const auto [n, outputShapes, timing, fallback] = burst->compute(request, measure, keys); in validate()

123