Home
last modified time | relevance | path

Searched refs:prepareModel (Results 1 – 25 of 76) sorted by relevance

1234

/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/test/
H A DDeviceTest.cpp371 TEST(DeviceTest, prepareModel) { in TEST() argument
376 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
382 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
395 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
401 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
413 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
419 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
431 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
449 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
466 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
[all …]
H A DMockDevice.h40 MOCK_METHOD(Return<V1_0::ErrorStatus>, prepareModel,
/aosp12/hardware/interfaces/neuralnetworks/1.0/
H A DIDevice.hal63 * prepareModel is used to make any necessary transformations or alternative
70 * prepareModel function must verify the inputs to the prepareModel function
71 * are correct. If there is an error, prepareModel must immediately invoke
74 * the prepareModel function are valid and there is no error, prepareModel
76 * and immediately return from prepareModel with ErrorStatus::NONE. If the
77 * asynchronous task fails to launch, prepareModel must immediately invoke
83 * prepareModel. If the model was prepared successfully, the callback object
97 * Multiple threads can call prepareModel on the same model concurrently.
113 prepareModel(Model model, IPreparedModelCallback callback)
H A DIPreparedModelCallback.hal23 * asynchronous task launched from IDevice::prepareModel.
35 * IDevice::prepareModel is invalid, notify must be invoked with the
46 * prepareModel is invalid
/aosp12/hardware/interfaces/neuralnetworks/1.1/
H A DIDevice.hal68 * prepareModel is used to make any necessary transformations or alternative
75 * prepareModel function must verify the inputs to the prepareModel function
76 * are correct. If there is an error, prepareModel must immediately invoke
79 * the prepareModel function are valid and there is no error, prepareModel
81 * and immediately return from prepareModel with ErrorStatus::NONE. If the
82 * asynchronous task fails to launch, prepareModel must immediately invoke
88 * prepareModel. If the model was prepared successfully, the callback object
102 * Multiple threads can call prepareModel on the same model concurrently.
/aosp12/packages/modules/NeuralNetworks/tools/systrace_parser/
H A Dcontract-between-code-and-parser.txt136 // Runtime code t0: t_m_w:B|T1|[NN_LI_PC]prepareModel
139 …NTRACE_FULL(NNTRACE_LAYER_IPC, t3: t_m_w:B|T2|[NN_LD_PC]SampleDriver::prepareModel
143 device->prepareModel(...); t7: t_m_w:E|T2
150 ... SampleDriver::prepareModel(...) {
151 … Note: the SampleDriver::prepareModel is
153 …"SampleDriver::prepareModel"); Driver,…
166 … detail for prepareModel specifically
181 // Runtime code t0: t_m_w:B|T1|[NN_LI_PC]prepareModel
188 device->prepareModel(...);
194 ... VersionedIDevice::prepareModel(...) {
[all …]
/aosp12/hardware/interfaces/neuralnetworks/aidl/utils/test/
H A DDeviceTest.cpp559 TEST(DeviceTest, prepareModel) { in TEST() argument
564 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
570 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
583 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
589 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
601 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
607 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
619 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
637 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
654 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST()
[all …]
/aosp12/hardware/interfaces/neuralnetworks/1.1/utils/test/
H A DDeviceTest.cpp83 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
381 TEST(DeviceTest, prepareModel) { in TEST() argument
392 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
411 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
429 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
447 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
464 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
481 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
500 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
/aosp12/hardware/interfaces/neuralnetworks/utils/common/test/
H A DResilientDeviceTest.cpp309 TEST(ResilientDeviceTest, prepareModel) { in TEST() argument
313 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _)) in TEST()
318 const auto result = device->prepareModel({}, {}, {}, {}, {}, {}, {}); in TEST()
328 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _)) in TEST()
333 const auto result = device->prepareModel({}, {}, {}, {}, {}, {}, {}); in TEST()
343 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _)) in TEST()
349 const auto result = device->prepareModel({}, {}, {}, {}, {}, {}, {}); in TEST()
359 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _)) in TEST()
364 EXPECT_CALL(*recoveredMockDevice, prepareModel(_, _, _, _, _, _, _)) in TEST()
370 const auto result = device->prepareModel({}, {}, {}, {}, {}, {}, {}); in TEST()
[all …]
H A DMockDevice.h39 MOCK_METHOD(GeneralResult<SharedPreparedModel>, prepareModel,
/aosp12/hardware/interfaces/neuralnetworks/1.2/
H A DIPreparedModelCallback.hal25 * asynchronous task launched from IDevice::prepareModel.
37 * IDevice::prepareModel is invalid, either notify_1_2 or notify must be invoked
48 * prepareModel is invalid
H A DIDevice.hal171 * prepareModel is used to make any necessary transformations to or alternative
192 * prepareModel function must verify the inputs to the preparedModel function
194 * cache) are correct. If there is an error, prepareModel must immediately invoke
197 * prepareModel function that are related to preparing the model are valid and
198 * there is no error, prepareModel must launch an asynchronous task
200 * prepareModel with ErrorStatus::NONE. If the asynchronous task fails to launch,
201 * prepareModel must immediately invoke the callback with
207 * prepareModel. If the model was prepared successfully, the callback object
217 * the prepareModel function must finish preparing the model. The driver
229 * Multiple threads may call prepareModel on the same model concurrently.
/aosp12/hardware/interfaces/neuralnetworks/1.3/
H A DIPreparedModelCallback.hal24 * asynchronous task launched from IDevice::prepareModel.
38 * IDevice::prepareModel is invalid, one of the notify methods must be invoked
49 * prepareModel is invalid
H A DIDevice.hal81 * prepareModel is used to make any necessary transformations to or
102 * prepareModel function must verify the inputs to the preparedModel
104 * prepared model to cache) are correct. If there is an error, prepareModel
107 * ErrorStatus. If the inputs to the prepareModel function that are related
108 * to preparing the model are valid and there is no error, prepareModel must
110 * immediately return from prepareModel with ErrorStatus::NONE. If the
111 * asynchronous task fails to launch, prepareModel must immediately invoke
117 * prepareModel. If the model was prepared successfully, the callback object
147 * cache, the prepareModel function must finish preparing the model. The
159 * Multiple threads may call prepareModel on the same model concurrently.
/aosp12/packages/modules/NeuralNetworks/driver/sample/
H A DLimitedSupportDevice.cpp90 GeneralResult<SharedPreparedModel> LimitedSupportDevice::prepareModel( in prepareModel() function in android::nn::sample::LimitedSupportDevice
99 return kDevice->prepareModel(model, preference, priority, deadline, modelCache, dataCache, in prepareModel()
H A DCanonicalDevice.h54 GeneralResult<SharedPreparedModel> prepareModel(const Model& model,
/aosp12/hardware/interfaces/neuralnetworks/1.2/utils/test/
H A DDeviceTest.cpp96 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
627 TEST(DeviceTest, prepareModel) { in TEST() argument
638 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
657 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
675 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
693 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
710 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
727 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
748 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
/aosp12/hardware/interfaces/neuralnetworks/1.3/utils/test/
H A DDeviceTest.cpp100 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
649 TEST(DeviceTest, prepareModel) { in TEST() argument
660 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
679 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
697 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
715 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
732 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
749 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
770 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST()
/aosp12/hardware/interfaces/neuralnetworks/utils/adapter/src/
H A DDevice.cpp131 nn::GeneralResult<void> prepareModel(const nn::SharedDevice& device, const Executor& executor, in prepareModel() function
142 auto result = device->prepareModel(nnModel, nn::ExecutionPreference::DEFAULT, in prepareModel()
165 device->prepareModel(nnModel, nnPreference, nn::Priority::DEFAULT, {}, {}, {}, {}); in prepareModel_1_1()
194 auto result = device->prepareModel(nnModel, nnPreference, nn::Priority::DEFAULT, {}, in prepareModel_1_2()
225 auto result = device->prepareModel(nnModel, nnPreference, nnPriority, nnDeadline, in prepareModel_1_3()
449 Return<V1_0::ErrorStatus> Device::prepareModel(const V1_0::Model& model, in prepareModel() function in android::hardware::neuralnetworks::adapter::Device
451 auto result = adapter::prepareModel(kDevice, kExecutor, model, callback); in prepareModel()
/aosp12/hardware/interfaces/neuralnetworks/1.0/utils/src/
H A DDevice.cpp143 nn::GeneralResult<nn::SharedPreparedModel> Device::prepareModel( in prepareModel() function in android::hardware::neuralnetworks::V1_0::utils::Device
157 const auto ret = kDevice->prepareModel(hidlModel, cb); in prepareModel()
/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A DTestExecution.cpp450 hardware::Return<V1_0::ErrorStatus> prepareModel( in prepareModel() function in android::__anon64cf91bb0110::TestDriver13
501 hardware::Return<V1_0::ErrorStatus> prepareModel( in prepareModel() function in android::__anon64cf91bb0110::TestDriver12
504 return mLatestDriver->prepareModel(model, actualCallback); in prepareModel()
555 hardware::Return<V1_0::ErrorStatus> prepareModel( in prepareModel() function in android::__anon64cf91bb0110::TestDriver11
558 return mLatestDriver->prepareModel(model, actualCallback); in prepareModel()
577 hardware::Return<V1_0::ErrorStatus> prepareModel( in prepareModel() function in android::__anon64cf91bb0110::TestDriver10
580 return mLatestDriver->prepareModel(model, actualCallback); in prepareModel()
/aosp12/packages/modules/NeuralNetworks/driver/sample_aidl/
H A DSampleDriverPartial.h43 ndk::ScopedAStatus prepareModel(
H A DSampleDriverPartial.cpp49 ndk::ScopedAStatus SampleDriverPartial::prepareModel( in prepareModel() function in android::nn::sample_driver::SampleDriverPartial
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/1/android/hardware/neuralnetworks/
H A DIDevice.aidl44 …void prepareModel(in android.hardware.neuralnetworks.Model model, in android.hardware.neuralnetwor… in prepareModel() method
/aosp12/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/
H A DIDevice.aidl44 …void prepareModel(in android.hardware.neuralnetworks.Model model, in android.hardware.neuralnetwor… in prepareModel() method

1234