Home
last modified time | relevance | path

Searched refs:targetDevice (Results 1 - 9 of 9) sorted by relevance

/test/xts/acts/ai/neural_network_runtime/v2_0/interface/src/
H A DDeviceTest.cpp108 size_t targetDevice = devicesID[0]; in HWTEST_F() local
110 OH_NN_ReturnCode ret = OH_NNDevice_GetName(targetDevice, nullptr); in HWTEST_F()
124 size_t targetDevice = devicesID[0]; in HWTEST_F() local
128 OH_NN_ReturnCode ret = OH_NNDevice_GetName(targetDevice, &name); in HWTEST_F()
171 size_t targetDevice = devicesID[0]; in HWTEST_F() local
173 OH_NN_ReturnCode ret = OH_NNDevice_GetType(targetDevice, nullptr); in HWTEST_F()
201 size_t targetDevice = devicesID[0]; in HWTEST_F() local
205 OH_NN_ReturnCode ret = OH_NNDevice_GetType(targetDevice, &type); in HWTEST_F()
H A DModelTest.cpp794 size_t targetDevice = devicesID[0]; in HWTEST_F() local
795 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in HWTEST_F()
810 size_t targetDevice{100000}; in HWTEST_F()
813 ASSERT_EQ(OH_NN_FAILED, OH_NNModel_GetAvailableOperations(model, targetDevice, &isSupported, &opCount)); in HWTEST_F()
833 size_t targetDevice = devicesID[0]; in HWTEST_F() local
835 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, nullptr, &opCount)); in HWTEST_F()
857 size_t targetDevice = devicesID[0]; in HWTEST_F() local
858 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, in HWTEST_F()
878 size_t targetDevice = devicesID[0]; in HWTEST_F() local
879 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, in HWTEST_F()
901 size_t targetDevice = devicesID[0]; HWTEST_F() local
945 size_t targetDevice = devicesID[deviceId]; HWTEST_F() local
974 size_t targetDevice = devicesID[0]; HWTEST_F() local
[all...]
H A DCompileTest.cpp133 size_t targetDevice = devicesID[0]; in HWTEST_F() local
135 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(model, targetDevice, &realSupported, &opCount); in HWTEST_F()
159 size_t targetDevice = devicesID[0]; // Use the first device in system test. in HWTEST_F() local
160 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNCompilation_SetDevice(nullptr, targetDevice)); in HWTEST_F()
H A DExecutorTest.cpp73 size_t targetDevice = devicesID[0]; in HWTEST_F() local
75 ASSERT_EQ(OH_NN_SUCCESS, OH_NNCompilation_SetDevice(compilation, targetDevice)); in HWTEST_F()
/test/xts/acts/ai/neural_network_runtime/v1_0/interface/src/
H A DDeviceTest.cpp108 size_t targetDevice = devicesID[0]; in HWTEST_F() local
110 OH_NN_ReturnCode ret = OH_NNDevice_GetName(targetDevice, nullptr); in HWTEST_F()
124 size_t targetDevice = devicesID[0]; in HWTEST_F() local
128 OH_NN_ReturnCode ret = OH_NNDevice_GetName(targetDevice, &name); in HWTEST_F()
171 size_t targetDevice = devicesID[0]; in HWTEST_F() local
173 OH_NN_ReturnCode ret = OH_NNDevice_GetType(targetDevice, nullptr); in HWTEST_F()
201 size_t targetDevice = devicesID[0]; in HWTEST_F() local
205 OH_NN_ReturnCode ret = OH_NNDevice_GetType(targetDevice, &type); in HWTEST_F()
H A DModelTest.cpp794 size_t targetDevice = devicesID[0]; in HWTEST_F() local
795 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in HWTEST_F()
810 size_t targetDevice{100000}; in HWTEST_F()
813 ASSERT_EQ(OH_NN_FAILED, OH_NNModel_GetAvailableOperations(model, targetDevice, &isSupported, &opCount)); in HWTEST_F()
833 size_t targetDevice = devicesID[0]; in HWTEST_F() local
835 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, nullptr, &opCount)); in HWTEST_F()
857 size_t targetDevice = devicesID[0]; in HWTEST_F() local
858 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, in HWTEST_F()
878 size_t targetDevice = devicesID[0]; in HWTEST_F() local
879 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNModel_GetAvailableOperations(model, targetDevice, in HWTEST_F()
901 size_t targetDevice = devicesID[0]; HWTEST_F() local
945 size_t targetDevice = devicesID[deviceId]; HWTEST_F() local
974 size_t targetDevice = devicesID[0]; HWTEST_F() local
[all...]
H A DCompileTest.cpp133 size_t targetDevice = devicesID[0]; in HWTEST_F() local
135 OH_NN_ReturnCode ret = OH_NNModel_GetAvailableOperations(model, targetDevice, &realSupported, &opCount); in HWTEST_F()
159 size_t targetDevice = devicesID[0]; // Use the first device in system test. in HWTEST_F() local
160 ASSERT_EQ(OH_NN_INVALID_PARAMETER, OH_NNCompilation_SetDevice(nullptr, targetDevice)); in HWTEST_F()
H A DExecutorTest.cpp73 size_t targetDevice = devicesID[0]; in HWTEST_F() local
75 ASSERT_EQ(OH_NN_SUCCESS, OH_NNCompilation_SetDevice(compilation, targetDevice)); in HWTEST_F()
/test/xts/acts/ai/nnrtndk/entry/src/main/cpp/
H A Dnnrtndk.cpp374 size_t targetDevice = devicesID[PARAM_0]; in OHNNModelGetAvailableoperationsOne() local
376 OH_NNModel_GetAvailableOperations(model, targetDevice, &realSupported, &opCount); in OHNNModelGetAvailableoperationsOne()
395 size_t targetDevice{PARAM_100000}; in OHNNModelGetAvailableoperationsTwo()
399 OH_NNModel_GetAvailableOperations(nullptr, targetDevice, &isSupported, &opCount); in OHNNModelGetAvailableoperationsTwo()

Completed in 15 milliseconds