/hardware/interfaces/neuralnetworks/1.0/ |
D | IDevice.hal | 63 * 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)
|
D | IPreparedModelCallback.hal | 23 * asynchronous task launched from IDevice::prepareModel. 35 * IDevice::prepareModel is invalid, notify must be invoked with the 46 * prepareModel is invalid
|
/hardware/interfaces/neuralnetworks/1.0/utils/test/ |
D | DeviceTest.cpp | 371 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() 437 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST() 449 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST() [all …]
|
D | MockDevice.h | 40 MOCK_METHOD(Return<V1_0::ErrorStatus>, prepareModel,
|
/hardware/interfaces/neuralnetworks/1.1/ |
D | IDevice.hal | 68 * 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.
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | DeviceTest.cpp | 559 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() 625 const auto result = device->prepareModel(kSimpleModel, nn::ExecutionPreference::DEFAULT, in TEST() 637 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST() [all …]
|
D | MockDevice.h | 46 MOCK_METHOD(ndk::ScopedAStatus, prepareModel,
|
/hardware/interfaces/neuralnetworks/1.1/utils/test/ |
D | DeviceTest.cpp | 83 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()
|
D | MockDevice.h | 40 MOCK_METHOD(Return<V1_0::ErrorStatus>, prepareModel,
|
/hardware/interfaces/neuralnetworks/1.2/ |
D | IPreparedModelCallback.hal | 25 * asynchronous task launched from IDevice::prepareModel. 37 * IDevice::prepareModel is invalid, either notify_1_2 or notify must be invoked 48 * prepareModel is invalid
|
D | IDevice.hal | 171 * 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.
|
/hardware/interfaces/neuralnetworks/1.3/ |
D | IPreparedModelCallback.hal | 24 * asynchronous task launched from IDevice::prepareModel. 38 * IDevice::prepareModel is invalid, one of the notify methods must be invoked 49 * prepareModel is invalid
|
D | IDevice.hal | 81 * 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.
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | ResilientDeviceTest.cpp | 309 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 …]
|
D | MockDevice.h | 39 MOCK_METHOD(GeneralResult<SharedPreparedModel>, prepareModel,
|
/hardware/interfaces/neuralnetworks/1.0/utils/src/ |
D | Device.cpp | 143 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()
|
/hardware/interfaces/neuralnetworks/1.2/utils/test/ |
D | DeviceTest.cpp | 96 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()
|
/hardware/interfaces/neuralnetworks/aidl/aidl_api/android.hardware.neuralnetworks/current/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 44 …void prepareModel(in android.hardware.neuralnetworks.Model model, in android.hardware.neuralnetwor… in prepareModel() method
|
/hardware/interfaces/neuralnetworks/utils/adapter/src/ |
D | Device.cpp | 131 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()
|
/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | DeviceTest.cpp | 100 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()
|
/hardware/interfaces/neuralnetworks/aidl/android/hardware/neuralnetworks/ |
D | IDevice.aidl | 346 void prepareModel(in Model model, in ExecutionPreference preference, in Priority priority, in prepareModel() method
|
/hardware/interfaces/neuralnetworks/aidl/utils/include/nnapi/hal/aidl/ |
D | InvalidDevice.h | 50 ndk::ScopedAStatus prepareModel(
|
/hardware/interfaces/neuralnetworks/utils/common/src/ |
D | InvalidDevice.cpp | 83 nn::GeneralResult<nn::SharedPreparedModel> InvalidDevice::prepareModel( in prepareModel() function in android::hardware::neuralnetworks::utils::InvalidDevice
|
/hardware/interfaces/neuralnetworks/1.1/utils/include/nnapi/hal/1.1/ |
D | Device.h | 64 nn::GeneralResult<nn::SharedPreparedModel> prepareModel(
|
/hardware/interfaces/neuralnetworks/1.0/utils/include/nnapi/hal/1.0/ |
D | Device.h | 64 nn::GeneralResult<nn::SharedPreparedModel> prepareModel(
|