Home
last modified time | relevance | path

Searched refs:test_wrapper (Results 1 – 25 of 29) sorted by relevance

12

/packages/modules/NeuralNetworks/runtime/test/
DGeneratedTestUtils.h38 namespace test_wrapper = android::nn::sl_wrapper; variable
55 class GeneratedModel : public test_wrapper::Model {
71 void setRefModels(std::vector<test_wrapper::Model> refModels) { in setRefModels()
76 void setConstantReferenceMemory(std::unique_ptr<test_wrapper::Memory> memory) { in setConstantReferenceMemory()
81 std::vector<test_wrapper::Model> mRefModels;
82 std::unique_ptr<test_wrapper::Memory> mConstantReferenceMemory;
101 void createRequest(const test_helper::TestModel& testModel, test_wrapper::Execution* execution,
DTestMemoryDomain.cpp46 using WrapperResult = test_wrapper::Result;
47 using Type = test_wrapper::Type;
160 void createTestModel(test_wrapper::Model* model) { in createTestModel()
161 test_wrapper::OperandType tensorTypeFullySpecified(Type::TENSOR_FLOAT32, {1}); in createTestModel()
162 test_wrapper::OperandType tensorTypeDynamicShape(Type::TENSOR_FLOAT32, {0}); in createTestModel()
163 test_wrapper::OperandType actType(Type::INT32, {}); in createTestModel()
199 test_wrapper::Compilation createCompilation(const std::vector<std::string>& deviceNames) { in createCompilation()
200 test_wrapper::Compilation compilation; in createCompilation()
218 test_wrapper::Compilation::createForDevices(&mModel, devices); in createCompilation()
221 compilation = test_wrapper::Compilation(&mModel); in createCompilation()
[all …]
DTestControlFlow.cpp28 using test_wrapper::Compilation;
29 using test_wrapper::Execution;
30 using test_wrapper::Model;
31 using test_wrapper::OperandType;
32 using test_wrapper::Result;
33 using test_wrapper::Type;
DTestTelemetry.cpp26 using android::nn::test_wrapper::Compilation;
27 using android::nn::test_wrapper::Execution;
28 using android::nn::test_wrapper::Model;
29 using android::nn::test_wrapper::OperandType;
30 using android::nn::test_wrapper::Result;
31 using android::nn::test_wrapper::Type;
DTestMemory.cpp32 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
33 using WrapperExecution = ::android::nn::test_wrapper::Execution;
34 using WrapperMemory = ::android::nn::test_wrapper::Memory;
35 using WrapperModel = ::android::nn::test_wrapper::Model;
36 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
37 using WrapperResult = ::android::nn::test_wrapper::Result;
38 using WrapperType = ::android::nn::test_wrapper::Type;
DTestUtils.h38 test_wrapper::Memory memory) in TestAshmem()
66 test_wrapper::Memory memory(length, PROT_READ | PROT_WRITE, fd, 0); in createFrom()
75 test_wrapper::Memory* get() { return &mMemory; } in get()
85 test_wrapper::Memory mMemory;
DTestFailingDriver.cpp34 using Result = test_wrapper::Result;
35 using WrapperOperandType = test_wrapper::OperandType;
36 using WrapperCompilation = test_wrapper::Compilation;
37 using WrapperExecution = test_wrapper::Execution;
38 using WrapperType = test_wrapper::Type;
39 using WrapperModel = test_wrapper::Model;
DTestMemoryInternal.cpp33 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
34 using WrapperExecution = ::android::nn::test_wrapper::Execution;
35 using WrapperMemory = ::android::nn::test_wrapper::Memory;
36 using WrapperModel = ::android::nn::test_wrapper::Model;
37 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
38 using WrapperResult = ::android::nn::test_wrapper::Result;
39 using WrapperType = ::android::nn::test_wrapper::Type;
DTestGpuNnapi.cpp41 using Type = test_wrapper::Type;
42 using OperandType = test_wrapper::OperandType;
43 using Result = test_wrapper::Result;
870 test_wrapper::Compilation::createForDevice(&mModel, device); in initialize()
887 mExecution = std::make_unique<test_wrapper::Execution>(&mCompilation); in runInternal()
896 std::vector<const test_wrapper::Event*> dependencies; in runInternal()
897 test_wrapper::Event start; in runInternal()
901 start = test_wrapper::Event(inSyncFd.get()); in runInternal()
907 test_wrapper::Event finished; in runInternal()
920 test_wrapper::Model mModel;
[all …]
DTestRemoveDefaultArguments.cpp103 using Result = test_wrapper::Result;
104 using WrapperOperandType = test_wrapper::OperandType;
105 using WrapperCompilation = test_wrapper::Compilation;
106 using WrapperType = test_wrapper::Type;
107 using WrapperModel = test_wrapper::Model;
DTestCompilationCaching.cpp37 using WrapperResult = test_wrapper::Result;
38 using Type = test_wrapper::Type;
280 void CreateBroadcastAddModel(test_wrapper::Model* model) { in CreateBroadcastAddModel()
281 test_wrapper::OperandType matrixType(Type::TENSOR_FLOAT32, {2, 2}); in CreateBroadcastAddModel()
282 test_wrapper::OperandType vectorType(Type::TENSOR_FLOAT32, {2}); in CreateBroadcastAddModel()
283 test_wrapper::OperandType scalarType(Type::INT32, {}); in CreateBroadcastAddModel()
414 test_wrapper::Model mModel;
DTestCompliance.cpp35 using WrapperModel = test_wrapper::Model;
36 using WrapperOperandType = test_wrapper::OperandType;
37 using WrapperType = test_wrapper::Type;
130 test_wrapper::Memory memory(buffer); in TEST_F()
DTestNeuralNetworksWrapper.cpp21 namespace test_wrapper { namespace
DTestExecution.cpp55 using WrapperCompilation = nn::test_wrapper::Compilation;
56 using WrapperEvent = nn::test_wrapper::Event;
57 using WrapperExecution = nn::test_wrapper::Execution;
58 using WrapperModel = nn::test_wrapper::Model;
59 using WrapperOperandType = nn::test_wrapper::OperandType;
60 using WrapperResult = nn::test_wrapper::Result;
61 using WrapperType = nn::test_wrapper::Type;
DTestPartitioningRandom.cpp113 using Result = nn::test_wrapper::Result;
115 using WrapperCompilation = nn::test_wrapper::Compilation;
116 using WrapperExecution = nn::test_wrapper::Execution;
117 using WrapperMemory = nn::test_wrapper::Memory;
118 using WrapperModel = nn::test_wrapper::Model;
119 using WrapperOperandType = nn::test_wrapper::OperandType;
120 using WrapperType = nn::test_wrapper::Type;
DTestMain.cpp38 using namespace android::nn::test_wrapper;
DTestCompatibilityLayer.cpp57 using namespace test_wrapper;
DTestIntrospectionControl.cpp54 using ExecutePreference = nn::test_wrapper::ExecutePreference;
57 using Result = nn::test_wrapper::Result;
61 using WrapperModel = nn::test_wrapper::Model;
62 using WrapperOperandType = nn::test_wrapper::OperandType;
63 using WrapperType = nn::test_wrapper::Type;
DGeneratedTestUtils.cpp41 using namespace test_wrapper;
DTestPartitioning.cpp160 using ExecutePreference = ::android::nn::test_wrapper::ExecutePreference;
161 using ExecutePriority = ::android::nn::test_wrapper::ExecutePriority;
173 using Result = ::android::nn::test_wrapper::Result;
178 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
179 using WrapperExecution = ::android::nn::test_wrapper::Execution;
180 using WrapperModel = ::android::nn::test_wrapper::Model;
181 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
182 using WrapperSymmPerChannelQuantParams = ::android::nn::test_wrapper::SymmPerChannelQuantParams;
183 using WrapperType = ::android::nn::test_wrapper::Type;
DTestUnknownDimensions.cpp27 using namespace android::nn::test_wrapper;
/packages/modules/NeuralNetworks/runtime/test/fuzzing/
DTestRandomGraph.cpp57 using test_wrapper::Result;
259 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults()
264 test_wrapper::Execution execution(&compilation); in computeGoldenResults()
283 void computeAndVerifyResultsForDevice(const test_wrapper::Model* model, uint32_t numOps, in computeAndVerifyResultsForDevice()
311 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice()
324 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice()
347 void computeAndVerifyResults(const std::string& name, const test_wrapper::Model* model, in computeAndVerifyResults()
356 test_wrapper::Compilation compilation(model); in computeAndVerifyResults()
360 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()
DRandomGraphGenerator.cpp40 using test_wrapper::Result;
/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
DFibonacciExtensionTest.cpp37 using ::android::nn::test_wrapper::ExtensionModel;
38 using ::android::nn::test_wrapper::ExtensionOperandParams;
39 using ::android::nn::test_wrapper::ExtensionOperandType;
40 using ::android::nn::test_wrapper::Type;
/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dtest_decorators.py83 def test_wrapper(self): function
116 return test_wrapper

12