/hardware/interfaces/neuralnetworks/1.1/vts/functional/ |
D | ValidateRequest.cpp | 28 using V1_0::Request; 31 using ExecutionMutation = std::function<void(Request*)>; 39 const Request& originalRequest, const ExecutionMutation& mutate) { in validate() 40 Request request = originalRequest; in validate() 56 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() 60 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() 66 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() 70 [output](Request* request) { hidl_vec_removeAt(&request->outputs, output); }); in removeOutputTest() 76 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest()
|
/hardware/interfaces/neuralnetworks/1.0/vts/functional/ |
D | ValidateRequest.cpp | 27 using ExecutionMutation = std::function<void(Request*)>; 35 const Request& originalRequest, const ExecutionMutation& mutate) { in validate() 36 Request request = originalRequest; in validate() 72 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() 76 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() 82 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() 86 [output](Request* request) { hidl_vec_removeAt(&request->outputs, output); }); in removeOutputTest() 92 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest()
|
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/ |
D | Conversions.h | 41 GeneralResult<Request::Argument> unvalidatedConvert( 43 GeneralResult<Request> unvalidatedConvert(const hal::V1_0::Request& request); 49 GeneralResult<Request> convert(const hal::V1_0::Request& request); 70 nn::GeneralResult<RequestArgument> unvalidatedConvert(const nn::Request::Argument& requestArgument); 71 nn::GeneralResult<hidl_memory> unvalidatedConvert(const nn::Request::MemoryPool& memoryPool); 72 nn::GeneralResult<Request> unvalidatedConvert(const nn::Request& request); 78 nn::GeneralResult<Request> convert(const nn::Request& request);
|
/hardware/interfaces/neuralnetworks/1.2/vts/functional/ |
D | ValidateRequest.cpp | 31 using V1_0::Request; 33 using ExecutionMutation = std::function<void(Request*)>; 45 const Request& originalRequest, const ExecutionMutation& mutate) { in validate() 46 Request request = originalRequest; in validate() 133 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() 137 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() 143 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() 147 [output](Request* request) { hidl_vec_removeAt(&request->outputs, output); }); in removeOutputTest() 153 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() 158 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequestFailure()
|
D | VtsHalNeuralnetworks.cpp | 34 using V1_0::Request; 125 void validateRequest(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 127 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 129 void validateBurst(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 131 void validateEverything(const sp<IDevice>& device, const Model& model, const Request& request) { in validateEverything() 143 void validateFailure(const sp<IDevice>& device, const Model& model, const Request& request) { in validateFailure() 159 const Request request = context.createRequest(kTestModel); in TEST_P()
|
/hardware/interfaces/neuralnetworks/utils/adapter/include/nnapi/hal/ |
D | PreparedModel.h | 44 Return<V1_0::ErrorStatus> execute(const V1_0::Request& request, 46 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, 63 Return<void> executeFenced(const V1_3::Request& request, const hidl_vec<hidl_handle>& waitFor,
|
/hardware/interfaces/neuralnetworks/aidl/utils/src/ |
D | Buffer.cpp | 36 std::shared_ptr<aidl_hal::IBuffer> buffer, nn::Request::MemoryDomainToken token) { in create() 40 if (token == static_cast<nn::Request::MemoryDomainToken>(0)) { in create() 48 nn::Request::MemoryDomainToken token) in Buffer() 51 CHECK(kToken != static_cast<nn::Request::MemoryDomainToken>(0)); in Buffer() 54 nn::Request::MemoryDomainToken Buffer::getToken() const { in getToken()
|
D | PreparedModel.cpp | 75 const nn::Request& request, nn::MeasureTiming measure, in execute() 79 std::optional<nn::Request> maybeRequestInShared; in execute() 81 const nn::Request& requestInShared = in execute() 96 PreparedModel::executeInternal(const Request& request, bool measure, int64_t deadline, in executeInternal() 123 PreparedModel::executeFenced(const nn::Request& request, const std::vector<nn::SyncFence>& waitFor, in executeFenced() 128 std::optional<nn::Request> maybeRequestInShared; in executeFenced() 130 const nn::Request& requestInShared = NN_TRY(hal::utils::convertRequestFromPointerToShared( in executeFenced() 146 PreparedModel::executeFencedInternal(const Request& request, in executeFencedInternal() 196 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() 199 std::optional<nn::Request> maybeRequestInShared; in createReusableExecution() [all …]
|
/hardware/interfaces/neuralnetworks/1.2/utils/src/ |
D | PreparedModel.cpp | 68 PreparedModel::executeSynchronously(const V1_0::Request& request, MeasureTiming measure) const { in executeSynchronously() 78 PreparedModel::executeAsynchronously(const V1_0::Request& request, MeasureTiming measure) const { in executeAsynchronously() 92 const nn::Request& request, nn::MeasureTiming measure, in execute() 96 std::optional<nn::Request> maybeRequestInShared; in execute() 98 const nn::Request& requestInShared = in execute() 110 PreparedModel::executeInternal(const V1_0::Request& request, MeasureTiming measure, in executeInternal() 127 PreparedModel::executeFenced(const nn::Request& /*request*/, in executeFenced() argument 138 const nn::Request& request, nn::MeasureTiming measure, in createReusableExecution() 141 std::optional<nn::Request> maybeRequestInShared; in createReusableExecution() 143 const nn::Request& requestInShared = NN_TRY(hal::utils::convertRequestFromPointerToShared( in createReusableExecution() [all …]
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | PreparedModel.cpp | 60 const nn::Request& request, nn::MeasureTiming /*measure*/, in execute() 64 std::optional<nn::Request> maybeRequestInShared; in execute() 66 const nn::Request& requestInShared = in execute() 77 PreparedModel::executeInternal(const V1_0::Request& request, in executeInternal() 98 PreparedModel::executeFenced(const nn::Request& /*request*/, in executeFenced() argument 109 const nn::Request& request, nn::MeasureTiming /*measure*/, in createReusableExecution() 112 std::optional<nn::Request> maybeRequestInShared; in createReusableExecution() 114 const nn::Request& requestInShared = NN_TRY(hal::utils::convertRequestFromPointerToShared( in createReusableExecution()
|
D | Conversions.cpp | 182 GeneralResult<Request::Argument> unvalidatedConvert(const hal::V1_0::RequestArgument& argument) { in unvalidatedConvert() 183 const auto lifetime = argument.hasNoValue ? Request::Argument::LifeTime::NO_VALUE in unvalidatedConvert() 184 : Request::Argument::LifeTime::POOL; in unvalidatedConvert() 185 return Request::Argument{ in unvalidatedConvert() 192 GeneralResult<Request> unvalidatedConvert(const hal::V1_0::Request& request) { in unvalidatedConvert() 194 std::vector<Request::MemoryPool> pools; in unvalidatedConvert() 198 return Request{ in unvalidatedConvert() 230 GeneralResult<Request> convert(const hal::V1_0::Request& request) { in convert() 366 const nn::Request::Argument& requestArgument) { in unvalidatedConvert() 367 if (requestArgument.lifetime == nn::Request::Argument::LifeTime::POINTER) { in unvalidatedConvert() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/utils/src/ |
D | Buffer.cpp | 42 sp<V1_3::IBuffer> buffer, nn::Request::MemoryDomainToken token) { in create() 46 if (token == static_cast<nn::Request::MemoryDomainToken>(0)) { in create() 54 nn::Request::MemoryDomainToken token) in Buffer() 57 CHECK(kToken != static_cast<nn::Request::MemoryDomainToken>(0)); in Buffer() 60 nn::Request::MemoryDomainToken Buffer::getToken() const { in getToken()
|
D | PreparedModel.cpp | 108 PreparedModel::executeSynchronously(const Request& request, V1_2::MeasureTiming measure, in executeSynchronously() 121 PreparedModel::executeAsynchronously(const Request& request, V1_2::MeasureTiming measure, in executeAsynchronously() 138 const nn::Request& request, nn::MeasureTiming measure, in execute() 142 std::optional<nn::Request> maybeRequestInShared; in execute() 144 const nn::Request& requestInShared = in execute() 160 PreparedModel::executeInternal(const Request& request, V1_2::MeasureTiming measure, in executeInternal() 180 PreparedModel::executeFenced(const nn::Request& request, const std::vector<nn::SyncFence>& waitFor, in executeFenced() 185 std::optional<nn::Request> maybeRequestInShared; in executeFenced() 187 const nn::Request& requestInShared = NN_TRY(hal::utils::convertRequestFromPointerToShared( in executeFenced() 204 PreparedModel::executeFencedInternal(const Request& request, const hidl_vec<hidl_handle>& waitFor, in executeFencedInternal() [all …]
|
/hardware/interfaces/neuralnetworks/1.3/vts/functional/ |
D | ValidateRequest.cpp | 37 using ExecutionMutation = std::function<void(Request*)>; 49 const Request& originalRequest, const ExecutionMutation& mutate) { in validate() 50 Request request = originalRequest; in validate() 103 V1_0::Request request10 = nn::convertToV1_0(request); in validate() 155 static void removeInputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeInputTest() 159 [input](Request* request) { hidl_vec_removeAt(&request->inputs, input); }); in removeInputTest() 165 static void removeOutputTest(const sp<IPreparedModel>& preparedModel, const Request& request) { in removeOutputTest() 169 [output](Request* request) { hidl_vec_removeAt(&request->outputs, output); }); in removeOutputTest() 175 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() 180 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateRequestFailure()
|
D | VtsHalNeuralnetworks.cpp | 130 void validateRequest(const sp<IPreparedModel>& preparedModel, const Request& request); 132 void validateRequestFailure(const sp<IPreparedModel>& preparedModel, const Request& request); 134 void validateBurst(const sp<IPreparedModel>& preparedModel, const V1_0::Request& request); 137 void validateExecuteFenced(const sp<IPreparedModel>& preparedModel, const Request& request) { in validateExecuteFenced() 150 void validateEverything(const sp<IDevice>& device, const Model& model, const Request& request) { in validateEverything() 163 V1_0::Request request10 = nn::convertToV1_0(request); in validateEverything() 167 void validateFailure(const sp<IDevice>& device, const Model& model, const Request& request) { in validateFailure() 183 const Request request = nn::convertToV1_3(context.createRequest(kTestModel)); in TEST_P()
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | Buffer.h | 38 std::shared_ptr<aidl_hal::IBuffer> buffer, nn::Request::MemoryDomainToken token); 41 nn::Request::MemoryDomainToken token); 43 nn::Request::MemoryDomainToken getToken() const override; 51 const nn::Request::MemoryDomainToken kToken;
|
D | PreparedModel.h | 50 const nn::Request& request, nn::MeasureTiming measure, 55 const nn::Request& request, const std::vector<nn::SyncFence>& waitFor, 61 const nn::Request& request, nn::MeasureTiming measure, 69 const Request& request, bool measure, int64_t deadline, int64_t loopTimeoutDuration, 73 executeFencedInternal(const Request& request,
|
/hardware/interfaces/neuralnetworks/1.3/utils/include/nnapi/hal/1.3/ |
D | Buffer.h | 38 sp<V1_3::IBuffer> buffer, nn::Request::MemoryDomainToken token); 41 nn::Request::MemoryDomainToken token); 43 nn::Request::MemoryDomainToken getToken() const override; 51 const nn::Request::MemoryDomainToken kToken;
|
D | PreparedModel.h | 50 const nn::Request& request, nn::MeasureTiming measure, 55 const nn::Request& request, const std::vector<nn::SyncFence>& waitFor, 61 const nn::Request& request, nn::MeasureTiming measure, 69 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline, 74 executeFencedInternal(const Request& request, const hidl_vec<hidl_handle>& waitFor, 82 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline, 85 const Request& request, V1_2::MeasureTiming measure, const OptionalTimePoint& deadline,
|
/hardware/interfaces/neuralnetworks/aidl/vts/functional/ |
D | ValidateRequest.cpp | 35 using ExecutionMutation = std::function<void(Request*)>; 43 const std::string& message, const Request& originalRequest, in validate() 45 Request request = utils::clone(originalRequest).value(); in validate() 116 const Request& request) { in removeInputTest() 119 validate(preparedModel, message, request, [input](Request* request) { in removeInputTest() 128 const Request& request) { in removeOutputTest() 131 validate(preparedModel, message, request, [output](Request* request) { in removeOutputTest() 139 void validateRequest(const std::shared_ptr<IPreparedModel>& preparedModel, const Request& request) { in validateRequest() 144 void validateBurst(const std::shared_ptr<IPreparedModel>& preparedModel, const Request& request) { in validateBurst() 204 const Request& request) { in validateRequestFailure()
|
/hardware/interfaces/neuralnetworks/1.2/utils/include/nnapi/hal/1.2/ |
D | PreparedModel.h | 51 const nn::Request& request, nn::MeasureTiming measure, 56 const nn::Request& request, const std::vector<nn::SyncFence>& waitFor, 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/1.3/utils/test/ |
D | MockPreparedModel.h | 40 (const V1_0::Request& request, const sp<V1_0::IExecutionCallback>& callback), 45 (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, 73 (const V1_3::Request& request, const hidl_vec<hidl_handle>& waitFor,
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | IPreparedModel.aidl | 24 import android.hardware.neuralnetworks.Request; 97 ExecutionResult executeSynchronously(in Request request, in boolean measureTiming, in executeSynchronously() 168 FencedExecutionResult executeFenced(in Request request, in ParcelFileDescriptor[] waitFor, in executeFenced()
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | MockPreparedModel.h | 29 (const Request& request, MeasureTiming measure, const OptionalTimePoint& deadline, 33 (const Request& request, const std::vector<SyncFence>& waitFor, 39 (const nn::Request& request, nn::MeasureTiming measure,
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | InvalidPreparedModel.cpp | 30 InvalidPreparedModel::execute(const nn::Request& /*request*/, nn::MeasureTiming /*measure*/, in execute() argument 38 const nn::Request& /*request*/, const std::vector<nn::SyncFence>& /*waitFor*/, in executeFenced() argument 46 const nn::Request& /*request*/, nn::MeasureTiming /*measure*/, in createReusableExecution() argument
|