Home
last modified time | relevance | path

Searched refs:mExecution (Results 1 – 5 of 5) sorted by relevance

/frameworks/ml/nn/runtime/test/
DTestNeuralNetworksWrapper.h323 int result = ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution()
329 ~Execution() { ANeuralNetworksExecution_free(mExecution); } in ~Execution()
343 ANeuralNetworksExecution_free(mExecution);
346 mExecution = other.mExecution;
347 other.mExecution = nullptr;
355 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length));
368 mExecution, index, type, memory->get(), offset, length));
374 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length));
386 mExecution, index, type, memory->get(), offset, length));
390 return static_cast<Result>(ANeuralNetworksExecution_setLoopTimeout(mExecution, duration)); in setLoopTimeout()
[all …]
DTestValidation.cpp209 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
213 ANeuralNetworksExecution_free(mExecution); in TearDown()
216 ANeuralNetworksExecution* mExecution = nullptr; member in __anon1fd66c800111::ValidationTestExecution
271 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in SetUp()
295 ANeuralNetworksExecution_free(mExecution); in TearDown()
378 ANeuralNetworksExecution* mExecution = nullptr; member in __anon1fd66c800111::ValidationTestExecutionDeviceMemory
1341 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, nullptr, sizeof(float)), in TEST_F()
1345 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, buffer, 20), in TEST_F()
1349 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 999, nullptr, buffer, sizeof(float)), in TEST_F()
1353 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, -1, nullptr, buffer, sizeof(float)), in TEST_F()
[all …]
DTestIntrospectionControl.cpp110 if (mExecution) { in TearDown()
111 ANeuralNetworksExecution_free(mExecution); in TearDown()
183 EXPECT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
188 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in prepareForExecution()
196 ANeuralNetworksExecution* mExecution = nullptr; member in __anon736024e70111::IntrospectionControlTest
247 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, input1, sizeof(input1)), in TEST_F()
249 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 1, nullptr, input2, sizeof(input2)), in TEST_F()
251 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, output, sizeof(output)), in TEST_F()
253 EXPECT_EQ(ANeuralNetworksExecution_setMeasureTiming(mExecution, true), in TEST_F()
256 EXPECT_EQ(ANeuralNetworksExecution_startCompute(mExecution, &mEvent), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]
/frameworks/ml/nn/runtime/include/
DNeuralNetworksWrapper.h408 int result = ANeuralNetworksExecution_create(compilation->getHandle(), &mExecution); in Execution()
414 ~Execution() { ANeuralNetworksExecution_free(mExecution); } in ~Execution()
428 ANeuralNetworksExecution_free(mExecution);
429 mExecution = other.mExecution;
430 other.mExecution = nullptr;
438 ANeuralNetworksExecution_setInput(mExecution, index, type, buffer, length));
444 mExecution, index, type, memory->get(), offset, length));
450 ANeuralNetworksExecution_setOutput(mExecution, index, type, buffer, length));
456 mExecution, index, type, memory->get(), offset, length));
461 Result result = static_cast<Result>(ANeuralNetworksExecution_startCompute(mExecution, &ev)); in startCompute()
[all …]
/frameworks/ml/nn/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp83 if (mExecution) { in TearDown()
84 ANeuralNetworksExecution_free(mExecution); in TearDown()
116 ASSERT_EQ(ANeuralNetworksExecution_create(mCompilation, &mExecution), in prepareForExecution()
124 ANeuralNetworksExecution* mExecution = nullptr; member in android::nn::__anon7b3c0b790111::FibonacciExtensionTest
194 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, &input, sizeof(input)), in TEST_F()
198 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, &output, sizeof(output)), in TEST_F()
201 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
225 EXPECT_EQ(ANeuralNetworksExecution_setInput(mExecution, 0, nullptr, &input, sizeof(input)), in TEST_F()
229 EXPECT_EQ(ANeuralNetworksExecution_setOutput(mExecution, 0, nullptr, &output, sizeof(output)), in TEST_F()
232 ASSERT_EQ(ANeuralNetworksExecution_compute(mExecution), ANEURALNETWORKS_NO_ERROR); in TEST_F()
[all …]