/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/ |
H A D | inner_model_mock_device.cpp | 35 // Mock the palce where the device GetSupportedOperation is called in inner_model build function. 36 OH_NN_ReturnCode HDIDeviceV1_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
|
H A D | mock_idevice.h | 35 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&));
|
H A D | compilation_mock_idevice.cpp | 45 OH_NN_ReturnCode HDIDeviceV1_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0 55 LOGE("HDIDeviceV1_0 mock GetSupportedOperation failed, Model is nullptr, cannot query supported operation."); in GetSupportedOperation()
|
/foundation/ai/neural_network_runtime/test/unittest/common/v2_0/ |
H A D | inner_model_mock_device.cpp | 35 // Mock the palce where the device GetSupportedOperation is called in inner_model build function. 36 OH_NN_ReturnCode HDIDeviceV2_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
|
H A D | mock_idevice.h | 35 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&));
|
H A D | compilation_mock_idevice.cpp | 45 OH_NN_ReturnCode HDIDeviceV2_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0 55 LOGE("HDIDeviceV2_0 mock GetSupportedOperation failed, Model is nullptr, cannot query supported operation."); in GetSupportedOperation()
|
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/device_registrar/ |
H A D | device_registrar_test.cpp | 52 virtual int32_t GetSupportedOperation(const V2_0::Model& model, std::vector<bool>& ops) = 0; 110 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, 169 MOCK_METHOD2(GetSupportedOperation, int32_t(const V2_0::Model&, std::vector<bool>&));
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_registrar/ |
H A D | device_registrar_test.cpp | 52 virtual int32_t GetSupportedOperation(const V1_0::Model& model, std::vector<bool>& ops) = 0; 110 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, 169 MOCK_METHOD2(GetSupportedOperation, int32_t(const V1_0::Model&, std::vector<bool>&));
|
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | nnbackend.cpp | 225 OH_NN_ReturnCode NNBackend::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::NNBackend 229 LOGE("[NNBackend] GetSupportedOperation failed, model is nullptr."); in GetSupportedOperation() 234 LOGE("[NNBackend] GetSupportedOperation failed, device is nullptr, some error happend."); in GetSupportedOperation() 238 OH_NN_ReturnCode ret = m_device->GetSupportedOperation(model, ops); in GetSupportedOperation() 240 LOGE("[NNBackend] GetSupportedOperation failed, fail to get supported ops from device."); in GetSupportedOperation()
|
H A D | nnbackend.h | 54 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
|
H A D | hdi_device_v1_0.h | 38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
|
H A D | device.h | 42 virtual OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
|
H A D | hdi_device_v2_0.h | 38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
|
H A D | hdi_device_v2_1.h | 38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
|
H A D | hdi_device_v1_0.cpp | 149 OH_NN_ReturnCode HDIDeviceV1_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0 175 hdiRet = m_iDevice->GetSupportedOperation(*iModel, ops); in GetSupportedOperation()
|
H A D | hdi_device_v2_1.cpp | 181 OH_NN_ReturnCode HDIDeviceV2_1::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_1 220 ret = m_iDevice->GetSupportedOperation(*iModel, ops); in GetSupportedOperation()
|
H A D | hdi_device_v2_0.cpp | 186 OH_NN_ReturnCode HDIDeviceV2_0::GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model, in GetSupportedOperation() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0 225 ret = m_iDevice->GetSupportedOperation(*iModel, ops); in GetSupportedOperation()
|
/foundation/ai/neural_network_runtime/test/unittest/components/nn_backend/ |
H A D | nn_backend_test.cpp | 44 MOCK_METHOD2(GetSupportedOperation, OH_NN_ReturnCode(std::shared_ptr<const mindspore::lite::LiteGraph>, 526 EXPECT_EQ(OH_NN_INVALID_PARAMETER, hdiDevice->GetSupportedOperation(model, ops)); in HWTEST_F() 545 EXPECT_EQ(OH_NN_FAILED, hdiDevice->GetSupportedOperation(model, ops)); in HWTEST_F() 563 EXPECT_CALL(*((MockIDevice *) device.get()), GetSupportedOperation(::testing::_, ::testing::_)) in HWTEST_F() 567 EXPECT_EQ(OH_NN_FAILED, hdiDevice->GetSupportedOperation(model, ops)); in HWTEST_F() 585 EXPECT_CALL(*((MockIDevice *) device.get()), GetSupportedOperation(::testing::_, ::testing::_)) in HWTEST_F() 589 EXPECT_EQ(OH_NN_FAILED, hdiDevice->GetSupportedOperation(model, ops)); in HWTEST_F()
|
/foundation/ai/neural_network_runtime/test/fuzztest/ |
H A D | nnrt_device_impl.h | 54 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops)
in GetSupportedOperation() function in OHOS::HDI::Nnrt::V2_0::NnrtDeviceImpl
|
/foundation/ai/neural_network_runtime/test/unittest/common/v2_1/ |
H A D | mock_idevice.h | 35 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&));
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/include/ |
H A D | nnrt_device_service.h | 44 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override;
|
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v2_0/hdi_cpu_service/include/ |
H A D | nnrt_device_service.h | 44 int32_t GetSupportedOperation(const Model& model, std::vector<bool>& ops) override;
|
/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/ |
H A D | hdi_device_test.cpp | 471 * @tc.desc: Verify the GetSupportedOperation function return success. 486 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), GetSupportedOperation(::testing::_, ::testing::_)) in HWTEST_F() 491 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, newOps); in HWTEST_F() 501 * @tc.desc: Verify the GetSupportedOperation function return failed in case of allocate buffer failure. 516 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, ops); in HWTEST_F() 522 * @tc.desc: Verify the GetSupportedOperation function return nullptr. 533 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, ops); in HWTEST_F() 539 * @tc.desc: Verify the GetSupportedOperation function return unavalidable device. 554 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), GetSupportedOperation(::testing::_, ::testing::_)) in HWTEST_F() 558 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(mode in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/ |
H A D | hdi_device_test.cpp | 60 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&)); 602 * @tc.desc: Verify the GetSupportedOperation function return success. 622 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), GetSupportedOperation(::testing::_, ::testing::_)) in HWTEST_F() 627 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, newOps); in HWTEST_F() 637 * @tc.desc: Verify the GetSupportedOperation function return failed in case of allocate buffer failure. 655 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, ops); in HWTEST_F() 661 * @tc.desc: Verify the GetSupportedOperation function return nullptr. 672 OH_NN_ReturnCode result = hdiDevice->GetSupportedOperation(model, ops); in HWTEST_F() 678 * @tc.desc: Verify the GetSupportedOperation function return unavalidable device. 696 EXPECT_CALL(*((V2_0::MockIDevice *)device.GetRefPtr()), GetSupportedOperation( in HWTEST_F() [all...] |
/foundation/ai/neural_network_runtime/example/drivers/nnrt/v1_0/hdi_cpu_service/src/ |
H A D | nnrt_device_service.cpp | 69 int32_t NnrtDeviceService::GetSupportedOperation(const Model& model, std::vector<bool>& ops) in GetSupportedOperation() function in OHOS::HDI::Nnrt::V1_0::NnrtDeviceService
|