Home
last modified time | relevance | path

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

12

/aosp12/packages/modules/NeuralNetworks/runtime/test/
H A 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,
H A 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;
H A DTestMemoryDomain.cpp39 using WrapperResult = test_wrapper::Result;
40 using Type = test_wrapper::Type;
153 void createTestModel(test_wrapper::Model* model) { in createTestModel()
154 test_wrapper::OperandType tensorTypeFullySpecified(Type::TENSOR_FLOAT32, {1}); in createTestModel()
155 test_wrapper::OperandType tensorTypeDynamicShape(Type::TENSOR_FLOAT32, {0}); in createTestModel()
156 test_wrapper::OperandType actType(Type::INT32, {}); in createTestModel()
193 test_wrapper::Compilation compilation; in createCompilation()
214 compilation = test_wrapper::Compilation(&mModel); in createCompilation()
220 std::pair<int, test_wrapper::Memory> allocateDeviceMemory( in allocateDeviceMemory()
239 return {n, test_wrapper::Memory(memory)}; in allocateDeviceMemory()
[all …]
H A DTestMemory.cpp27 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
28 using WrapperExecution = ::android::nn::test_wrapper::Execution;
29 using WrapperMemory = ::android::nn::test_wrapper::Memory;
30 using WrapperModel = ::android::nn::test_wrapper::Model;
31 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
32 using WrapperResult = ::android::nn::test_wrapper::Result;
33 using WrapperType = ::android::nn::test_wrapper::Type;
H A DTestUtils.h36 test_wrapper::Memory memory) in TestAshmem()
58 test_wrapper::Memory memory(length, PROT_READ | PROT_WRITE, fd, 0); in createFrom()
67 test_wrapper::Memory* get() { return &mMemory; } in get()
77 test_wrapper::Memory mMemory;
H A DTestMemoryInternal.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;
H A 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;
H A DTestGpuNnapi.cpp41 using Type = test_wrapper::Type;
42 using OperandType = test_wrapper::OperandType;
43 using Result = test_wrapper::Result;
894 std::vector<const test_wrapper::Event*> dependencies; in runInternal()
895 test_wrapper::Event start; in runInternal()
899 start = test_wrapper::Event(inSyncFd.get()); in runInternal()
905 test_wrapper::Event finished; in runInternal()
918 test_wrapper::Model mModel;
919 test_wrapper::Compilation mCompilation;
920 std::unique_ptr<test_wrapper::Execution> mExecution;
[all …]
H A 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;
H A DTestCompilationCaching.cpp36 using WrapperResult = test_wrapper::Result;
37 using Type = test_wrapper::Type;
279 void CreateBroadcastAddModel(test_wrapper::Model* model) { in CreateBroadcastAddModel()
280 test_wrapper::OperandType matrixType(Type::TENSOR_FLOAT32, {2, 2}); in CreateBroadcastAddModel()
281 test_wrapper::OperandType vectorType(Type::TENSOR_FLOAT32, {2}); in CreateBroadcastAddModel()
282 test_wrapper::OperandType scalarType(Type::INT32, {}); in CreateBroadcastAddModel()
414 test_wrapper::Model mModel;
H A DTestCompliance.cpp32 using WrapperModel = test_wrapper::Model;
33 using WrapperOperandType = test_wrapper::OperandType;
34 using WrapperType = test_wrapper::Type;
154 test_wrapper::Memory memory(buffer); in TEST_F()
H A DTestNeuralNetworksWrapper.cpp21 namespace test_wrapper { namespace
H A DTestExecution.cpp54 using WrapperCompilation = nn::test_wrapper::Compilation;
55 using WrapperEvent = nn::test_wrapper::Event;
56 using WrapperExecution = nn::test_wrapper::Execution;
57 using WrapperModel = nn::test_wrapper::Model;
58 using WrapperOperandType = nn::test_wrapper::OperandType;
59 using WrapperResult = nn::test_wrapper::Result;
60 using WrapperType = nn::test_wrapper::Type;
H A DTestPartitioningRandom.cpp116 using Result = nn::test_wrapper::Result;
118 using WrapperCompilation = nn::test_wrapper::Compilation;
119 using WrapperExecution = nn::test_wrapper::Execution;
120 using WrapperMemory = nn::test_wrapper::Memory;
121 using WrapperModel = nn::test_wrapper::Model;
122 using WrapperOperandType = nn::test_wrapper::OperandType;
123 using WrapperType = nn::test_wrapper::Type;
H A DTestMain.cpp38 using namespace android::nn::test_wrapper;
H A DTestIntrospectionControl.cpp53 using ExecutePreference = nn::test_wrapper::ExecutePreference;
56 using Result = nn::test_wrapper::Result;
60 using WrapperModel = nn::test_wrapper::Model;
61 using WrapperOperandType = nn::test_wrapper::OperandType;
62 using WrapperType = nn::test_wrapper::Type;
H A DGeneratedTestUtils.cpp38 using namespace test_wrapper;
H A DTestPartitioning.cpp159 using ExecutePreference = ::android::nn::test_wrapper::ExecutePreference;
160 using ExecutePriority = ::android::nn::test_wrapper::ExecutePriority;
172 using Result = ::android::nn::test_wrapper::Result;
177 using WrapperCompilation = ::android::nn::test_wrapper::Compilation;
178 using WrapperExecution = ::android::nn::test_wrapper::Execution;
179 using WrapperModel = ::android::nn::test_wrapper::Model;
180 using WrapperOperandType = ::android::nn::test_wrapper::OperandType;
181 using WrapperSymmPerChannelQuantParams = ::android::nn::test_wrapper::SymmPerChannelQuantParams;
182 using WrapperType = ::android::nn::test_wrapper::Type;
H A DTestUnknownDimensions.cpp26 using namespace android::nn::test_wrapper;
H A DTestTrivialModel.cpp22 using namespace android::nn::test_wrapper;
H A DTestGenerated.cpp58 using namespace test_wrapper;
H A DTestNeuralNetworksWrapper.h42 namespace test_wrapper {
/aosp12/packages/modules/NeuralNetworks/runtime/test/fuzzing/
H A DTestRandomGraph.cpp53 using test_wrapper::Result;
255 auto [result, compilation] = test_wrapper::Compilation::createForDevice(&model, refDevice); in computeGoldenResults()
260 test_wrapper::Execution execution(&compilation); in computeGoldenResults()
279 void computeAndVerifyResultsForDevice(const test_wrapper::Model* model, uint32_t numOps, in computeAndVerifyResultsForDevice()
307 auto [result, compilation] = test_wrapper::Compilation::createForDevice(model, device); in computeAndVerifyResultsForDevice()
320 test_wrapper::Execution execution(&compilation); in computeAndVerifyResultsForDevice()
343 void computeAndVerifyResults(const std::string& name, const test_wrapper::Model* model, in computeAndVerifyResults()
352 test_wrapper::Compilation compilation(model); in computeAndVerifyResults()
356 test_wrapper::Execution execution(&compilation); in computeAndVerifyResults()
H A DRandomGraphGenerator.cpp40 using test_wrapper::Result;
/aosp12/packages/modules/NeuralNetworks/runtime/test/fibonacci_extension/
H A 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;

12