Home
last modified time | relevance | path

Searched refs:GetSupportedOperation (Results 1 - 25 of 35) sorted by relevance

12

/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/
H A Dinner_model_mock_device.cpp35 // 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 Dmock_idevice.h35 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&));
H A Dcompilation_mock_idevice.cpp45 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 Dinner_model_mock_device.cpp35 // 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 Dmock_idevice.h35 MOCK_METHOD2(GetSupportedOperation, int32_t(const Model&, std::vector<bool>&));
H A Dcompilation_mock_idevice.cpp45 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 Ddevice_registrar_test.cpp52 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 Ddevice_registrar_test.cpp52 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 Dnnbackend.cpp225 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 Dnnbackend.h54 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
H A Dhdi_device_v1_0.h38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
H A Ddevice.h42 virtual OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
H A Dhdi_device_v2_0.h38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
H A Dhdi_device_v2_1.h38 OH_NN_ReturnCode GetSupportedOperation(std::shared_ptr<const mindspore::lite::LiteGraph> model,
H A Dhdi_device_v1_0.cpp149 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 Dhdi_device_v2_1.cpp181 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 Dhdi_device_v2_0.cpp186 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 Dnn_backend_test.cpp44 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 Dnnrt_device_impl.h54 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 Dmock_idevice.h35 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 Dnnrt_device_service.h44 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 Dnnrt_device_service.h44 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 Dhdi_device_test.cpp471 * @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 Dhdi_device_test.cpp60 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 Dnnrt_device_service.cpp69 int32_t NnrtDeviceService::GetSupportedOperation(const Model& model, std::vector<bool>& ops) in GetSupportedOperation() function in OHOS::HDI::Nnrt::V1_0::NnrtDeviceService

Completed in 16 milliseconds

12